Class: Rsift::Data
Instance Method Summary collapse
- #do(opts = {}) ⇒ Object
- #get(path) ⇒ Object
-
#initialize(url, key, username) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(url, key, username) ⇒ Data
Returns a new instance of Data.
6 7 8 9 |
# File 'lib/rsift/data.rb', line 6 def initialize(url, key, username) @format = "json" super(url, key, username) end |
Instance Method Details
#do(opts = {}) ⇒ Object
11 12 13 14 |
# File 'lib/rsift/data.rb', line 11 def do(opts = {}) get("stream.#{@format}?&"+ Rsift::(opts).join("&")) end |
#get(path) ⇒ Object
16 17 18 |
# File 'lib/rsift/data.rb', line 16 def get(path) @conn.get(path) end |