class Ingenico::Connect::SDK::Domain::Product::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
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/product/payment_product_field_display_element.rb, line 35 def from_hash(hash) super if hash.has_key? 'id' @id = hash['id'] end if hash.has_key? 'label' @label = hash['label'] end if hash.has_key? 'type' @type = hash['type'] end if hash.has_key? 'value' @value = hash['value'] 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_display_element.rb, line 26 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