Class: Worldline::Connect::SDK::V1::Domain::PaymentProductDisplayHints
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::PaymentProductDisplayHints
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_product_display_hints.rb
Instance Attribute Summary collapse
-
#display_order ⇒ Integer
The current value of display_order.
-
#label ⇒ String
The current value of label.
-
#logo ⇒ String
The current value of logo.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#display_order ⇒ Integer
Returns the current value of display_order.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_display_hints.rb', line 15 def display_order @display_order end |
#label ⇒ String
Returns the current value of label.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_display_hints.rb', line 15 def label @label end |
#logo ⇒ String
Returns the current value of logo.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_display_hints.rb', line 15 def logo @logo end |
Instance Method Details
#from_hash(hash) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_display_hints.rb', line 32 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 ⇒ Hash
24 25 26 27 28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_display_hints.rb', line 24 def to_h hash = super hash['displayOrder'] = @display_order unless @display_order.nil? hash['label'] = @label unless @label.nil? hash['logo'] = @logo unless @logo.nil? hash end |