Class: Qcmd::QLab::Cue

Inherits:
Object
  • Object
show all
Defined in:
lib/qcmd/qlab/cue.rb

Overview

All return an array of cue dictionaries:

[
    {
        "uniqueID": string,
        "number": string
        "name": string
        "type": string
        "colorName": string
        "flagged": number
        "armed": number
    }
]
If the cue is a group, the dictionary will include an array of cue dictionaries for all children in the group:

[
    {
        "uniqueID": string,
        "number": string
        "name": string
        "type": string
        "colorName": string
        "flagged": number
        "armed": number
        "cues": [ { }, { }, { } ]
    }
]

[{\"number\":\"\",
  \"uniqueID\":\"1\",
  \"cues\":[{\"number\":\"1\",
  \"uniqueID\":\"2\",
  \"flagged\":false,
  \"type\":\"Wait\",
  \"colorName\":\"none\",
  \"name\":\"boom\",
  \"armed\":true}],
  \"flagged\":false,
  \"type\":\"Group\",
  \"colorName\":\"none\",
  \"name\":\"Main Cue List\",
  \"armed\":true}]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Cue

Returns a new instance of Cue.



49
50
51
# File 'lib/qcmd/qlab/cue.rb', line 49

def initialize options={}
  self.data = options
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



47
48
49
# File 'lib/qcmd/qlab/cue.rb', line 47

def data
  @data
end

Instance Method Details

#idObject



53
54
55
# File 'lib/qcmd/qlab/cue.rb', line 53

def id
  data['uniqueID']
end

#nameObject



57
58
59
# File 'lib/qcmd/qlab/cue.rb', line 57

def name
  data['name']
end

#numberObject



61
62
63
# File 'lib/qcmd/qlab/cue.rb', line 61

def number
  data['number']
end

#typeObject



65
66
67
# File 'lib/qcmd/qlab/cue.rb', line 65

def type
  data['type']
end