Class: Ingenico::Connect::SDK::Domain::Product::PaymentProductDisplayHints
- Inherits:
-
Ingenico::Connect::SDK::DataObject
- Object
- Ingenico::Connect::SDK::DataObject
- Ingenico::Connect::SDK::Domain::Product::PaymentProductDisplayHints
- Defined in:
- lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb
Instance Attribute Summary collapse
-
#display_order ⇒ Object
Integer.
-
#label ⇒ Object
String.
-
#logo ⇒ Object
String.
Instance Method Summary collapse
Methods inherited from Ingenico::Connect::SDK::DataObject
Instance Attribute Details
#display_order ⇒ Object
Integer
14 15 16 |
# File 'lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb', line 14 def display_order @display_order end |
#label ⇒ Object
String
17 18 19 |
# File 'lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb', line 17 def label @label end |
#logo ⇒ Object
String
20 21 22 |
# File 'lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb', line 20 def logo @logo end |
Instance Method Details
#from_hash(hash) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb', line 30 def from_hash(hash) super if hash.has_key?('displayOrder') @display_order = hash['displayOrder'] end if hash.has_key?('label') @label = hash['label'] end if hash.has_key?('logo') @logo = hash['logo'] end end |
#to_h ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb', line 22 def to_h hash = super add_to_hash(hash, 'displayOrder', @display_order) add_to_hash(hash, 'label', @label) add_to_hash(hash, 'logo', @logo) hash end |