Sha256: e10b86789f46f19d1888514d4a7cdd61c629bb65d5afb582e25834bbf82fe1ce

Contents?: true

Size: 1.5 KB

Versions: 8

Compression:

Stored size: 1.5 KB

Contents

module Qcmd
  module QLab
    #  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}]

    class Cue
      attr_accessor :data

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

      def id
        data['uniqueID']
      end

      def name
        data['name']
      end

      def number
        data['number']
      end

      def type
        data['type']
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
qcmd-0.1.7 lib/qcmd/qlab/cue.rb
qcmd-0.1.6 lib/qcmd/qlab/cue.rb
qcmd-0.1.5 lib/qcmd/qlab/cue.rb
qcmd-0.1.4 lib/qcmd/qlab/cue.rb
qcmd-0.1.3 lib/qcmd/qlab/cue.rb
qcmd-0.1.2 lib/qcmd/qlab/cue.rb
qcmd-0.1.1 lib/qcmd/qlab/cue.rb
qcmd-0.1.0 lib/qcmd/qlab/cue.rb