Class: Feed2Email::FeedAutodiscoverer

Inherits:
Object
  • Object
show all
Defined in:
lib/feed2email/feed_autodiscoverer.rb

Instance Method Summary collapse

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_typeObject



11
# File 'lib/feed2email/feed_autodiscoverer.rb', line 11

def content_type; handle.content_type end

#feedsObject



13
14
15
# File 'lib/feed2email/feed_autodiscoverer.rb', line 13

def feeds
  @feeds ||= discoverable? ? discover : []
end