Class: Sphero::Response::GetRGB

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

Constant Summary

Constants inherited from Sphero::Response

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

Instance Method Summary collapse

Methods inherited from Sphero::Response

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

Constructor Details

This class inherits a constructor from Sphero::Response

Instance Method Details

#bObject



99
# File 'lib/sphero/response.rb', line 99

def b; body[2]; end

#gObject



98
# File 'lib/sphero/response.rb', line 98

def g; body[1]; end

#rObject



97
# File 'lib/sphero/response.rb', line 97

def r; body[0]; end