Class: Columbus::Feed
- Inherits:
-
Struct
- Object
- Struct
- Columbus::Feed
- Defined in:
- lib/columbus/feed.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #determine_feed_endpoint ⇒ Object
-
#initialize(*args) ⇒ Feed
constructor
A new instance of Feed.
Constructor Details
#initialize(*args) ⇒ Feed
Returns a new instance of Feed.
5 6 7 8 |
# File 'lib/columbus/feed.rb', line 5 def initialize(*args) super(*args) determine_feed_endpoint end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/columbus/feed.rb', line 3 def body @body end |
#title ⇒ Object
Returns the value of attribute title
2 3 4 |
# File 'lib/columbus/feed.rb', line 2 def title @title end |
#url ⇒ Object
Returns the value of attribute url
2 3 4 |
# File 'lib/columbus/feed.rb', line 2 def url @url end |
Instance Method Details
#determine_feed_endpoint ⇒ Object
10 11 12 13 14 15 |
# File 'lib/columbus/feed.rb', line 10 def determine_feed_endpoint response = RedirectFollower.new(url).resolve self.url = response.url self.body = response.body self end |