Class: Tandarb::Datastream

Inherits:
Client
  • Object
show all
Defined in:
lib/tandarb/datastream.rb

Constant Summary

Constants inherited from Client

Client::BASE_URL

Instance Method Summary collapse

Methods inherited from Client

#delete, #get, #post, #put

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