Class: Tandarb::Datastream
Constant Summary
Constants inherited from Client
Instance Method Summary collapse
- #create(body) ⇒ Object
-
#initialize(token) ⇒ Datastream
constructor
A new instance of Datastream.
Methods inherited from Client
Constructor Details
#initialize(token) ⇒ Datastream
Returns a new instance of Datastream.
3 4 5 |
# File 'lib/tandarb/datastream.rb', line 3 def initialize(token) @token = token end |
Instance Method Details
#create(body) ⇒ Object
7 8 9 |
# File 'lib/tandarb/datastream.rb', line 7 def create(body) post('/datastreams', body, @token) end |