Method: Formotion::Base#initialize

Defined in:
lib/formotion/base.rb

#initialize(params = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
10
11
# File 'lib/formotion/base.rb', line 5

def initialize(params = {})
  params.each { |key, value|
    if  self.class.const_get(:PROPERTIES).member? key.to_sym
      self.send("#{key}=".to_sym, value)
    end
  }
end