Class: SecureTrading::Objects::Order
- Inherits:
-
DataObject
- Object
- DataObject
- SecureTrading::Objects::Order
- Defined in:
- lib/secure_trading/objects/order.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#reference ⇒ Object
Returns the value of attribute reference.
Instance Method Summary collapse
Methods inherited from DataObject
Constructor Details
This class inherits a constructor from SecureTrading::DataObject
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details.
5 6 7 |
# File 'lib/secure_trading/objects/order.rb', line 5 def details @details end |
#reference ⇒ Object
Returns the value of attribute reference.
5 6 7 |
# File 'lib/secure_trading/objects/order.rb', line 5 def reference @reference end |
Instance Method Details
#to_hash ⇒ Object
7 8 9 10 11 12 |
# File 'lib/secure_trading/objects/order.rb', line 7 def to_hash { 'OrderReference' => self.reference, 'OrderInformation' => self.details } end |