Method: CreditGateway::BaseModel#initialize
- Defined in:
- lib/credit_gateway/base_model.rb
#initialize(attributes = {}) ⇒ BaseModel
Returns a new instance of BaseModel.
43 44 45 46 47 |
# File 'lib/credit_gateway/base_model.rb', line 43 def initialize(attributes = {}) attributes.each do |attr, value| public_send("#{attr}=", value) end end |