Class: OnlinePayments::SDK::Domain::PaymentProductDisplayHints
- Inherits:
-
OnlinePayments::SDK::DataObject
- Object
- OnlinePayments::SDK::DataObject
- OnlinePayments::SDK::Domain::PaymentProductDisplayHints
- Defined in:
- lib/onlinepayments/sdk/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 OnlinePayments::SDK::DataObject
Instance Attribute Details
#display_order ⇒ Integer
Returns the current value of display_order.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product_display_hints.rb', line 12 def display_order @display_order end |
#label ⇒ String
Returns the current value of label.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product_display_hints.rb', line 12 def label @label end |
#logo ⇒ String
Returns the current value of logo.
12 13 14 |
# File 'lib/onlinepayments/sdk/domain/payment_product_display_hints.rb', line 12 def logo @logo end |
Instance Method Details
#from_hash(hash) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/onlinepayments/sdk/domain/payment_product_display_hints.rb', line 26 def from_hash(hash) super @display_order = hash['displayOrder'] if hash.key? 'displayOrder' @label = hash['label'] if hash.key? 'label' @logo = hash['logo'] if hash.key? 'logo' end |
#to_h ⇒ Hash
18 19 20 21 22 23 24 |
# File 'lib/onlinepayments/sdk/domain/payment_product_display_hints.rb', line 18 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 |