Class: Qcmd::CueAction

Inherits:
Action
  • Object
show all
Defined in:
lib/qcmd/action.rb

Instance Attribute Summary

Attributes inherited from Action

#code

Instance Method Summary collapse

Methods inherited from Action

evaluate, #evaluate, #initialize, #osc_address=, #osc_message, #parse

Constructor Details

This class inherits a constructor from Qcmd::Action

Instance Method Details

#commandObject

cue commands work differently



142
143
144
# File 'lib/qcmd/action.rb', line 142

def command
  code[2]
end

#id_fieldObject

cue specific fields



156
157
158
# File 'lib/qcmd/action.rb', line 156

def id_field
  code[0]
end

#identifierObject



160
161
162
# File 'lib/qcmd/action.rb', line 160

def identifier
  code[1]
end

#osc_addressObject



146
147
148
# File 'lib/qcmd/action.rb', line 146

def osc_address
  "/#{ code[0] }/#{ code[1] }/#{ code[2] }"
end

#osc_argumentsObject



150
151
152
# File 'lib/qcmd/action.rb', line 150

def osc_arguments
  stringify code[3..-1]
end