class Ingenico::Connect::SDK::Domain::Product::LabelTemplateElement

@attr [String] attribute_key @attr [String] mask

Attributes

attribute_key[RW]
mask[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/product/label_template_element.rb, line 27
def from_hash(hash)
  super
  if hash.has_key? 'attributeKey'
    @attribute_key = hash['attributeKey']
  end
  if hash.has_key? 'mask'
    @mask = hash['mask']
  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/label_template_element.rb, line 20
def to_h
  hash = super
  hash['attributeKey'] = @attribute_key unless @attribute_key.nil?
  hash['mask'] = @mask unless @mask.nil?
  hash
end