Class: Ingenico::Connect::SDK::Domain::Installments::InstallmentDisplayHints

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/installments/installment_display_hints.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::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



14
15
16
# File 'lib/ingenico/connect/sdk/domain/installments/installment_display_hints.rb', line 14

def display_order
  @display_order
end

#labelString

Returns the current value of label.

Returns:

  • (String)

    the current value of label



14
15
16
# File 'lib/ingenico/connect/sdk/domain/installments/installment_display_hints.rb', line 14

def label
  @label
end

#logoString

Returns the current value of logo.

Returns:

  • (String)

    the current value of logo



14
15
16
# File 'lib/ingenico/connect/sdk/domain/installments/installment_display_hints.rb', line 14

def 
  
end

Instance Method Details

#from_hash(hash) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/ingenico/connect/sdk/domain/installments/installment_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'
     = hash['logo']
  end
end

#to_hHash

Returns:

  • (Hash)


23
24
25
26
27
28
29
# File 'lib/ingenico/connect/sdk/domain/installments/installment_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'] =  unless .nil?
  hash
end