Class: SecureTrading::DataObject
- Inherits:
-
Object
- Object
- SecureTrading::DataObject
- Defined in:
- lib/secure_trading/data_object.rb
Direct Known Subclasses
Objects::Customer, Objects::Customer::Address, Objects::Order, Objects::PaymentCard, Objects::TDSResponse, Objects::Transaction, Objects::UserAgent
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DataObject
constructor
A new instance of DataObject.
- #to_xml(options = {}) ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ DataObject
Returns a new instance of DataObject.
4 5 6 7 8 |
# File 'lib/secure_trading/data_object.rb', line 4 def initialize(attributes = {}) attributes.each do |key,value| self.send("#{key}=", value) if self.respond_to?(key) end end |