class Ingenico::Direct::SDK::Domain::AccountOnFileAttribute

@attr [String] key @attr [String] must_write_reason @attr [String] status @attr [String] value

Attributes

key[RW]
must_write_reason[RW]
status[RW]
value[RW]

Public Instance Methods

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