class Ingenico::Direct::SDK::Domain::PaymentProductDisplayHints
@attr [Integer] display_order
@attr [String] label @attr [String] logo
Attributes
display_order[RW]
label[RW]
logo[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# File lib/ingenico/direct/sdk/domain/payment_product_display_hints.rb, line 27 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()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/payment_product_display_hints.rb, line 19 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