Class: Ingenico::Direct::SDK::Domain::PaymentProductDisplayHints

Inherits:
Ingenico::Direct::SDK::DataObject show all
Defined in:
lib/ingenico/direct/sdk/domain/payment_product_display_hints.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Direct::SDK::DataObject

new_from_hash

Instance Attribute Details

#display_orderInteger

Returns the current value of display_order.

Returns:

  • (Integer)

    the current value of display_order



13
14
15
# File 'lib/ingenico/direct/sdk/domain/payment_product_display_hints.rb', line 13

def display_order
  @display_order
end

#labelString

Returns the current value of label.

Returns:

  • (String)

    the current value of label



13
14
15
# File 'lib/ingenico/direct/sdk/domain/payment_product_display_hints.rb', line 13

def label
  @label
end

#logoString

Returns the current value of logo.

Returns:

  • (String)

    the current value of logo



13
14
15
# File 'lib/ingenico/direct/sdk/domain/payment_product_display_hints.rb', line 13

def 
  @logo
end

Instance Method Details

#from_hash(hash) ⇒ Object



27
28
29
30
31
32
# 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_hHash

Returns:

  • (Hash)


19
20
21
22
23
24
25
# 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