Class: Greedy::Feed

Inherits:
Object
  • Object
show all
Defined in:
lib/greedy/feed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @title = options['title']
  @href = options['htmlUrl']
  @google_feed_id = options['streamId']
  @entries = options['entries'] || []
end

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries.



3
4
5
# File 'lib/greedy/feed.rb', line 3

def entries
  @entries
end

#google_feed_idObject (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

#hrefObject (readonly)

Returns the value of attribute href.



3
4
5
# File 'lib/greedy/feed.rb', line 3

def href
  @href
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/greedy/feed.rb', line 3

def title
  @title
end