class Ingenico::Connect::SDK::Domain::Product::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::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb, line 31 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()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/product/payment_product_display_hints.rb, line 23 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