Class: DoingStream::Stream::FeedStream
- Defined in:
- lib/doing_stream/stream/feed_stream.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Stream
Instance Method Summary collapse
Methods inherited from Stream
#entry_class, #initialize, #name, #uri
Constructor Details
This class inherits a constructor from DoingStream::Stream::Stream
Instance Method Details
#entries ⇒ Object
9 10 11 12 13 |
# File 'lib/doing_stream/stream/feed_stream.rb', line 9 def entries @entries ||= feed.entries.map do |entry| entry_class.new(name, Hash[entry.to_a]) end end |
#feed ⇒ Object
5 6 7 |
# File 'lib/doing_stream/stream/feed_stream.rb', line 5 def feed @feed ||= Feedzirra::Feed.fetch_and_parse uri.to_s end |