Sha256: 2d07daeb1fc1a0e0866a9be788d374c7a3a498a2076f6e1dbef4146b4ba8bf06

Contents?: true

Size: 455 Bytes

Versions: 8

Compression:

Stored size: 455 Bytes

Contents

module Qcmd
  module QLab
    #
    #   "uniqueID": string,
    #   "displayName": string
    #   "hasPasscode": number
    #
    class Workspace
      attr_accessor :data, :passcode, :cue_lists, :cues

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

      def name
        data['displayName']
      end

      def passcode?
        !!data['hasPasscode']
      end

      def id
        data['uniqueID']
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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