Class: LiveScene

Inherits:
Object
  • Object
show all
Defined in:
lib/live_set/live_set_scene.rb

Instance Method Summary collapse

Constructor Details

#initialize(live_scene) ⇒ LiveScene

Returns a new instance of LiveScene.

Parameters:

  • live_scene

    is an XML element as parsed by Nokogiri



3
4
5
6
7
8
# File 'lib/live_set/live_set_scene.rb', line 3

def initialize(live_scene)
  @live_scene = live_scene
  @id = @live_scene['Id']
  @name = @live_scene.Name['Value']
  @tempo = @live_scene.Tempo['Value'] if @live_scene.IsTempoEnabled['Value'].to_bool
end