Class: BurstSms::ParamBuilder

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/burstsms.rb

Instance Method Summary collapse

Constructor Details

#initialize(parameters = {}) ⇒ ParamBuilder

Returns a new instance of ParamBuilder.



11
12
13
14
15
16
# File 'lib/burstsms.rb', line 11

def initialize(parameters={})
  parameters.each do |property,value|
    self.class.element property, String unless respond_to?("#{property}=")
    send("#{property}=",value) if respond_to?("#{property}=")   
  end
end