Class: Ingenico::Direct::SDK::Domain::PaymentProductFieldTooltip

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

new_from_hash

Instance Attribute Details

#imageString

Returns the current value of image.

Returns:

  • (String)

    the current value of image



12
13
14
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_tooltip.rb', line 12

def image
  @image
end

#labelString

Returns the current value of label.

Returns:

  • (String)

    the current value of label



12
13
14
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_tooltip.rb', line 12

def label
  @label
end

Instance Method Details

#from_hash(hash) ⇒ Object



24
25
26
27
28
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_tooltip.rb', line 24

def from_hash(hash)
  super
  @image = hash['image'] if hash.key? 'image'
  @label = hash['label'] if hash.key? 'label'
end

#to_hHash

Returns:

  • (Hash)


17
18
19
20
21
22
# File 'lib/ingenico/direct/sdk/domain/payment_product_field_tooltip.rb', line 17

def to_h
  hash = super
  hash['image'] = @image unless @image.nil?
  hash['label'] = @label unless @label.nil?
  hash
end