Class: STSPlatform::Sensors
- Inherits:
-
RequestHandler
- Object
- RequestHandler
- STSPlatform::Sensors
- Defined in:
- lib/stsplatform/sensors.rb
Overview
The Sensors resource of the STS Platform API Params:
handler-
a client object
id-
(optional) the numerical or string id of the sensor
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
-
#initialize(handler, id = "") ⇒ Sensors
constructor
A new instance of Sensors.
Methods inherited from RequestHandler
#delete, #get, #post, #put, #set_config, #set_handler
Constructor Details
#initialize(handler, id = "") ⇒ Sensors
Returns a new instance of Sensors.
14 15 16 |
# File 'lib/stsplatform/sensors.rb', line 14 def initialize(handler, id="") super(handler,id) end |