Class: Pedalboard::Components::BaseComponent

Inherits:
Object
  • Object
show all
Defined in:
lib/pedalboard/components/base_component.rb

Direct Known Subclasses

Led, Pedal, Pot

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ BaseComponent

Returns a new instance of BaseComponent.



7
8
9
10
11
# File 'lib/pedalboard/components/base_component.rb', line 7

def initialize opts={}
  @pin = opts.fetch(:pin) {}
  @pedalboard = opts.fetch(:pedalboard) {}
  @dino_component = opts.fetch(:dino_component) {}
end

Instance Attribute Details

#pedalboardObject (readonly)

Returns the value of attribute pedalboard.



5
6
7
# File 'lib/pedalboard/components/base_component.rb', line 5

def pedalboard
  @pedalboard
end

#pinObject (readonly)

Returns the value of attribute pin.



5
6
7
# File 'lib/pedalboard/components/base_component.rb', line 5

def pin
  @pin
end