Class: STSPlatform::Data

Inherits:
RequestHandler show all
Defined in:
lib/stsplatform/data.rb

Overview

The Data resource of the STS Platform API Params:

handler

a sensor object

id

(optional) the id (timestamp of the data), only used to delete

Returns:

STSPlatformResponse

object containing “data” and “code” parameters

Inherits from RequestHandler, with access to the get, post, put and delete methods.

Instance Attribute Summary

Attributes inherited from RequestHandler

#_successor, #auth, #resource, #url

Instance Method Summary collapse

Methods inherited from RequestHandler

#delete, #get, #post, #put, #set_config, #set_handler

Constructor Details

#initialize(handler, id = "") ⇒ Data

Returns a new instance of Data.



13
14
15
# File 'lib/stsplatform/data.rb', line 13

def initialize(handler, id="")
  super(handler,id)
end