Class: Pipe::Source::JSONFeed
- Inherits:
-
Object
- Object
- Pipe::Source::JSONFeed
- Defined in:
- lib/pipe/source/json_feed.rb
Direct Known Subclasses
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(options = {}) ⇒ JSONFeed
constructor
A new instance of JSONFeed.
Constructor Details
#initialize(options = {}) ⇒ JSONFeed
Returns a new instance of JSONFeed.
2 3 4 |
# File 'lib/pipe/source/json_feed.rb', line 2 def initialize(={}) @options = end |
Instance Method Details
#get ⇒ Object
6 7 8 |
# File 'lib/pipe/source/json_feed.rb', line 6 def get ActiveSupport::JSON.decode(open(@options[:url]).read) end |