Class: Tandarb::Storestat

Inherits:
Client
  • Object
show all
Defined in:
lib/tandarb/storestat.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) ⇒ Storestat

Returns a new instance of Storestat.



3
4
5
# File 'lib/tandarb/storestat.rb', line 3

def initialize(token)
  @token = token
end

Instance Method Details

#create(body, datastream_id) ⇒ Object



7
8
9
# File 'lib/tandarb/storestat.rb', line 7

def create(body, datastream_id)
  post("/storestats/for_datastream/#{datastream_id}", body, @token)
end