Class: Ingenico::Direct::SDK::Domain::OrderReferences
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::OrderReferences
- Defined in:
- lib/ingenico/direct/sdk/domain/order_references.rb
Instance Attribute Summary collapse
-
#descriptor ⇒ String
The current value of descriptor.
-
#merchant_parameters ⇒ String
The current value of merchant_parameters.
-
#merchant_reference ⇒ String
The current value of merchant_reference.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#descriptor ⇒ String
Returns the current value of descriptor.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/order_references.rb', line 13 def descriptor @descriptor end |
#merchant_parameters ⇒ String
Returns the current value of merchant_parameters.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/order_references.rb', line 13 def merchant_parameters @merchant_parameters end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
13 14 15 |
# File 'lib/ingenico/direct/sdk/domain/order_references.rb', line 13 def merchant_reference @merchant_reference end |
Instance Method Details
#from_hash(hash) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/ingenico/direct/sdk/domain/order_references.rb', line 27 def from_hash(hash) super @descriptor = hash['descriptor'] if hash.key? 'descriptor' @merchant_parameters = hash['merchantParameters'] if hash.key? 'merchantParameters' @merchant_reference = hash['merchantReference'] if hash.key? 'merchantReference' end |
#to_h ⇒ Hash
19 20 21 22 23 24 25 |
# File 'lib/ingenico/direct/sdk/domain/order_references.rb', line 19 def to_h hash = super hash['descriptor'] = @descriptor unless @descriptor.nil? hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil? hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil? hash end |