class QLab::CueList
An array of cue objects:
[
{ "uniqueID": string, "number": string "name": string "type": string "colorName": string "flagged": number "armed": number }
]
If a given cue is a group, it will include the nested cues:
[
{ "uniqueID": string, "number": string "name": string "type": string "colorName": string "flagged": number "armed": number "cues": [ { }, { }, { } ] }
]
Attributes
data[RW]
Public Class Methods
new(data, workspace)
click to toggle source
Load a cue list with the attributes given in ‘data`
# File lib/qlab-ruby/cue_list.rb, line 35 def initialize data, workspace self.data = data @workspace = workspace end
Public Instance Methods
cues()
click to toggle source
# File lib/qlab-ruby/cue_list.rb, line 60 def cues if data['cues'].nil? [] else data['cues'].map {|c| QLab::Cue.new(c, self)} end end
has_cues?()
click to toggle source
# File lib/qlab-ruby/cue_list.rb, line 68 def has_cues? cues.size > 0 end
id()
click to toggle source
# File lib/qlab-ruby/cue_list.rb, line 44 def id data['uniqueID'] end
name()
click to toggle source
# File lib/qlab-ruby/cue_list.rb, line 48 def name data['listName'] end
number()
click to toggle source
# File lib/qlab-ruby/cue_list.rb, line 52 def number data['number'] end
type()
click to toggle source
# File lib/qlab-ruby/cue_list.rb, line 56 def type data['type'] end
workspace()
click to toggle source
# File lib/qlab-ruby/cue_list.rb, line 40 def workspace @workspace end