Class: Substance::InputObject

Inherits:
AttributeObject show all
Includes:
Objects::Arguments, Objects::Options
Defined in:
lib/substance/input_object.rb

Direct Known Subclasses

InputModel

Instance Method Summary collapse

Methods included from Objects::Attributes

#to_h

Constructor Details

#initialize(**input) ⇒ InputObject

Returns a new instance of InputObject.



14
15
16
17
18
19
# File 'lib/substance/input_object.rb', line 14

def initialize(**input)
  @input = input
  run_callbacks(:initialize) do
    input.each { |key, value| __send__("#{key}=".to_sym, value) }
  end
end