Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'app/models/entries'
- class Feed < Ohm::Model
- attribute :title
- attribute :subtitle
- collection :entries, Entry
- index :href
- end
- class Entry < Ohm::Model
- attribute :title
- attribute :url
- index :published
- end
Add Comment
Please, Sign In to add comment