Class: BurstSms::ParamBuilder
- Inherits:
-
Object
- Object
- BurstSms::ParamBuilder
- Includes:
- HappyMapper
- Defined in:
- lib/burstsms.rb
Instance Method Summary collapse
-
#initialize(parameters = {}) ⇒ ParamBuilder
constructor
A new instance of ParamBuilder.
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 |