class Ingenico::Connect::SDK::Domain::Definitions::ValidationBankAccountCheck

@attr [String] code @attr [String] description @attr [String] result

Attributes

code[RW]
description[RW]
result[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_check.rb, line 31
def from_hash(hash)
  super
  if hash.has_key? 'code'
    @code = hash['code']
  end
  if hash.has_key? 'description'
    @description = hash['description']
  end
  if hash.has_key? 'result'
    @result = hash['result']
  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/definitions/validation_bank_account_check.rb, line 23
def to_h
  hash = super
  hash['code'] = @code unless @code.nil?
  hash['description'] = @description unless @description.nil?
  hash['result'] = @result unless @result.nil?
  hash
end