Sha256: a630501438f84595df990b53ae5d00f4472417d321d9403e5c526a58745ae583

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 Bytes

Contents

module Qcmd
  class CueAction < Action
    # cue commands work differently
    def command
      code[2]
    end

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

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

    # cue specific fields

    def id_field
      code[0]
    end

    def identifier
      code[1]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qcmd-0.1.15 lib/qcmd/actions/cue_action.rb
qcmd-0.1.14 lib/qcmd/actions/cue_action.rb
qcmd-0.1.13 lib/qcmd/actions/cue_action.rb
qcmd-0.1.12 lib/qcmd/actions/cue_action.rb
qcmd-0.1.11 lib/qcmd/actions/cue_action.rb
qcmd-0.1.10 lib/qcmd/actions/cue_action.rb