Class: Worldline::Connect::SDK::V1::Domain::ValidationBankAccountCheck

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/connect/sdk/v1/domain/validation_bank_account_check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#codeString

Returns the current value of code.

Returns:

  • (String)

    the current value of code



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/validation_bank_account_check.rb', line 15

def code
  @code
end

#descriptionString

Returns the current value of description.

Returns:

  • (String)

    the current value of description



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/validation_bank_account_check.rb', line 15

def description
  @description
end

#resultString

Returns the current value of result.

Returns:

  • (String)

    the current value of result



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/validation_bank_account_check.rb', line 15

def result
  @result
end

Instance Method Details

#from_hash(hash) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/worldline/connect/sdk/v1/domain/validation_bank_account_check.rb', line 32

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_hHash

Returns:

  • (Hash)


24
25
26
27
28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/validation_bank_account_check.rb', line 24

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