Class: Ecertic::Resource::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ecertic/resources/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



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

def initialize(attributes = {})
  attributes.each do |key, value|
    m = "#{key}=".to_sym
    send(m, value) if respond_to?(m)
  end
end