Class: Traktor::NML::Cue

Inherits:
Object
  • Object
show all
Defined in:
lib/traktor/nml/cue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(info) ⇒ Cue

Returns a new instance of Cue.



6
7
8
9
10
11
12
13
# File 'lib/traktor/nml/cue.rb', line 6

def initialize(info)
  @name    = info[:name]
  @type    = info[:type]
  @start   = info[:start]
  @length  = info[:length]
  @repeats = info[:repeats]
  @hotcue  = info[:hotcue]
end

Instance Attribute Details

#hotcueObject (readonly)

Returns the value of attribute hotcue.



4
5
6
# File 'lib/traktor/nml/cue.rb', line 4

def hotcue
  @hotcue
end

#lengthObject (readonly)

Returns the value of attribute length.



4
5
6
# File 'lib/traktor/nml/cue.rb', line 4

def length
  @length
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/traktor/nml/cue.rb', line 4

def name
  @name
end

#repeatsObject (readonly)

Returns the value of attribute repeats.



4
5
6
# File 'lib/traktor/nml/cue.rb', line 4

def repeats
  @repeats
end

#startObject (readonly)

Returns the value of attribute start.



4
5
6
# File 'lib/traktor/nml/cue.rb', line 4

def start
  @start
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/traktor/nml/cue.rb', line 4

def type
  @type
end

Instance Method Details

#[](key) ⇒ Object



15
16
17
# File 'lib/traktor/nml/cue.rb', line 15

def [](key)
  return self.instance_variable_get("@#{key.to_s}")
end