class Ingenico::Direct::SDK::Domain::PaymentProductFieldTooltip

@attr [String] image @attr [String] label

Attributes

image[RW]
label[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# 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_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Direct::SDK::DataObject#to_h
# 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