class Ingenico::Direct::SDK::Domain::PaymentProductFieldDisplayElement

@attr [String] id @attr [String] label @attr [String] type @attr [String] value

Attributes

id[RW]
label[RW]
type[RW]
value[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/direct/sdk/domain/payment_product_field_display_element.rb, line 30
def from_hash(hash)
  super
  @id = hash['id'] if hash.key? 'id'
  @label = hash['label'] if hash.key? 'label'
  @type = hash['type'] if hash.key? 'type'
  @value = hash['value'] if hash.key? 'value'
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_display_element.rb, line 21
def to_h
  hash = super
  hash['id'] = @id unless @id.nil?
  hash['label'] = @label unless @label.nil?
  hash['type'] = @type unless @type.nil?
  hash['value'] = @value unless @value.nil?
  hash
end