Class: Sphero::Response::SensorData

Inherits:
AsyncResponse show all
Defined in:
lib/sphero/response.rb

Constant Summary

Constants inherited from AsyncResponse

AsyncResponse::COLLISION_DETECTED, AsyncResponse::CONFIG_BLOCK, AsyncResponse::DLEN_LSB, AsyncResponse::DLEN_MSB, AsyncResponse::ID_CODE, AsyncResponse::LEVEL_1_DIAGNOSTIC, AsyncResponse::MACRO_MARKERS, AsyncResponse::POWER_NOTIFICATION, AsyncResponse::PRESLEEP_WARNING, AsyncResponse::SENSOR_DATA, AsyncResponse::VALID_REPONSES

Constants inherited from Sphero::Response

ASYNC_RESPONSE, CODE_OK, DLEN, MRSP, SEQ, SIMPLE_RESPONSE, SOP1, SOP2

Instance Method Summary collapse

Methods inherited from AsyncResponse

constantize, #empty?, response, #seq, #success?, valid?

Methods inherited from Sphero::Response

async?, #empty?, #initialize, #seq, simple?, #success?, #valid?

Constructor Details

This class inherits a constructor from Sphero::Response

Instance Method Details

#bodyObject



160
161
162
# File 'lib/sphero/response.rb', line 160

def body
  @body.unpack 's*'
end