class Ingenico::Connect::SDK::Domain::Product::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/connect/sdk/domain/product/payment_product_field_tooltip.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'image'
    @image = hash['image']
  end
  if hash.has_key? 'label'
    @label = hash['label']
  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_field_tooltip.rb, line 20
def to_h
  hash = super
  hash['image'] = @image unless @image.nil?
  hash['label'] = @label unless @label.nil?
  hash
end