Class: Moc::Protocol::State

Inherits:
Symbol
  • Object
show all
Defined in:
lib/moc/protocol/state.rb

Class Method Summary collapse

Methods inherited from Symbol

#==, #initialize, #inspect, #pack, read, #to_i, #to_s, #to_sym

Methods included from Type

#read, #unpack

Constructor Details

This class inherits a constructor from Moc::Protocol::Symbol

Class Method Details

.codesObject



14
15
16
17
18
19
20
# File 'lib/moc/protocol/state.rb', line 14

def self.codes
	@codes ||= {
		PLAY:  0x01,
		STOP:  0x02,
		PAUSE: 0x03
	}
end