Class: Greedy::Feed
- Inherits:
-
Object
- Object
- Greedy::Feed
- Defined in:
- lib/greedy/feed.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#google_feed_id ⇒ Object
readonly
Returns the value of attribute google_feed_id.
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options) ⇒ Feed
constructor
Instantiate a record corresponding to a feed.
Constructor Details
#initialize(options) ⇒ Feed
Instantiate a record corresponding to a feed
6 7 8 9 10 11 |
# File 'lib/greedy/feed.rb', line 6 def initialize() @title = ['title'] @href = ['htmlUrl'] @google_feed_id = ['streamId'] @entries = ['entries'] || [] end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
3 4 5 |
# File 'lib/greedy/feed.rb', line 3 def entries @entries end |
#google_feed_id ⇒ Object (readonly)
Returns the value of attribute google_feed_id.
3 4 5 |
# File 'lib/greedy/feed.rb', line 3 def google_feed_id @google_feed_id end |
#href ⇒ Object (readonly)
Returns the value of attribute href.
3 4 5 |
# File 'lib/greedy/feed.rb', line 3 def href @href end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/greedy/feed.rb', line 3 def title @title end |