Module: Kiva::DynamicInitializer::InstanceMethods
- Defined in:
- lib/ruby-kiva/dynamic_initializer.rb
Instance Method Summary collapse
Instance Method Details
#initialize(options = {}) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/ruby-kiva/dynamic_initializer.rb', line 18 def initialize( = {}) .each do |key, value| if respond_to?("#{key}=") self.send("#{key}=", value) elsif !Api.friendly raise "Attribute #{key} is not yet supported. Set Api.friendly = true" end end end |