Class: Qcmd::CueAction

Inherits:
BaseAction show all
Defined in:
lib/qcmd/actions/cue_action.rb

Instance Attribute Summary

Attributes inherited from BaseAction

#code, #modification

Instance Method Summary collapse

Methods inherited from BaseAction

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

Constructor Details

This class inherits a constructor from Qcmd::BaseAction

Instance Method Details

#commandObject

cue commands should be in the form:

[$id_field, $identifier, $command[, $arguments]]

where arguments are optional.



9
10
11
# File 'lib/qcmd/actions/cue_action.rb', line 9

def command
  code[2]
end

#id_fieldObject

cue specific fields



23
24
25
# File 'lib/qcmd/actions/cue_action.rb', line 23

def id_field
  code[0]
end

#identifierObject



27
28
29
# File 'lib/qcmd/actions/cue_action.rb', line 27

def identifier
  code[1]
end

#osc_addressObject



13
14
15
# File 'lib/qcmd/actions/cue_action.rb', line 13

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

#osc_argumentsObject



17
18
19
# File 'lib/qcmd/actions/cue_action.rb', line 17

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