Class: Feed2Email::FeedAutodiscoverer
- Inherits:
-
Object
- Object
- Feed2Email::FeedAutodiscoverer
- Defined in:
- lib/feed2email/feed_autodiscoverer.rb
Instance Method Summary collapse
- #content_type ⇒ Object
- #feeds ⇒ Object
-
#initialize(uri) ⇒ FeedAutodiscoverer
constructor
A new instance of FeedAutodiscoverer.
Constructor Details
#initialize(uri) ⇒ FeedAutodiscoverer
Returns a new instance of FeedAutodiscoverer.
7 8 9 |
# File 'lib/feed2email/feed_autodiscoverer.rb', line 7 def initialize(uri) @uri = uri end |
Instance Method Details
#content_type ⇒ Object
11 |
# File 'lib/feed2email/feed_autodiscoverer.rb', line 11 def content_type; handle.content_type end |
#feeds ⇒ Object
13 14 15 |
# File 'lib/feed2email/feed_autodiscoverer.rb', line 13 def feeds @feeds ||= discoverable? ? discover : [] end |