Class: FeedlyApi::Feed
- Inherits:
-
Object
- Object
- FeedlyApi::Feed
- Defined in:
- lib/feedly_api/feed.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#subscribers ⇒ Object
readonly
Returns the value of attribute subscribers.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#velocity ⇒ Object
readonly
Returns the value of attribute velocity.
-
#website ⇒ Object
readonly
Returns the value of attribute website.
Instance Method Summary collapse
-
#initialize(client = Client.new, feed_id) ⇒ Feed
constructor
A new instance of Feed.
- #items(args = {}) ⇒ Object
Constructor Details
#initialize(client = Client.new, feed_id) ⇒ Feed
Returns a new instance of Feed.
10 11 12 13 14 15 |
# File 'lib/feedly_api/feed.rb', line 10 def initialize(client = Client.new, feed_id) @client = client @id = feed_id fetch_feed_info end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/feedly_api/feed.rb', line 3 def client @client end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/feedly_api/feed.rb', line 3 def id @id end |
#subscribers ⇒ Object (readonly)
Returns the value of attribute subscribers.
3 4 5 |
# File 'lib/feedly_api/feed.rb', line 3 def subscribers @subscribers end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/feedly_api/feed.rb', line 3 def title @title end |
#velocity ⇒ Object (readonly)
Returns the value of attribute velocity.
3 4 5 |
# File 'lib/feedly_api/feed.rb', line 3 def velocity @velocity end |
#website ⇒ Object (readonly)
Returns the value of attribute website.
3 4 5 |
# File 'lib/feedly_api/feed.rb', line 3 def website @website end |
Instance Method Details
#items(args = {}) ⇒ Object
17 18 19 |
# File 'lib/feedly_api/feed.rb', line 17 def items(args = {}) @client.get_feed_contents(@id, args).fetch(:items) {[]} end |