Class: Ingenico::Direct::SDK::Domain::PaymentProductFieldDisplayElement
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::PaymentProductFieldDisplayElement
- Defined in:
- lib/ingenico/direct/sdk/domain/payment_product_field_display_element.rb
Instance Attribute Summary collapse
-
#id ⇒ String
The current value of id.
-
#label ⇒ String
The current value of label.
-
#type ⇒ String
The current value of type.
-
#value ⇒ String
The current value of value.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#id ⇒ String
Returns the current value of id.
14 15 16 |
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_display_element.rb', line 14 def id @id end |
#label ⇒ String
Returns the current value of label.
14 15 16 |
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_display_element.rb', line 14 def label @label end |
#type ⇒ String
Returns the current value of type.
14 15 16 |
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_display_element.rb', line 14 def type @type end |
#value ⇒ String
Returns the current value of value.
14 15 16 |
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_display_element.rb', line 14 def value @value end |
Instance Method Details
#from_hash(hash) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_display_element.rb', line 30 def from_hash(hash) super @id = hash['id'] if hash.key? 'id' @label = hash['label'] if hash.key? 'label' @type = hash['type'] if hash.key? 'type' @value = hash['value'] if hash.key? 'value' end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 28 |
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_display_element.rb', line 21 def to_h hash = super hash['id'] = @id unless @id.nil? hash['label'] = @label unless @label.nil? hash['type'] = @type unless @type.nil? hash['value'] = @value unless @value.nil? hash end |