class Ingenico::Direct::SDK::Domain::LabelTemplateElement
@attr [String] attribute_key
@attr [String] mask
Attributes
attribute_key[RW]
mask[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# File lib/ingenico/direct/sdk/domain/label_template_element.rb, line 24 def from_hash(hash) super @attribute_key = hash['attributeKey'] if hash.key? 'attributeKey' @mask = hash['mask'] if hash.key? 'mask' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/label_template_element.rb, line 17 def to_h hash = super hash['attributeKey'] = @attribute_key unless @attribute_key.nil? hash['mask'] = @mask unless @mask.nil? hash end