Class: Worldline::Connect::SDK::V1::Domain::AccountOnFileAttribute

Inherits:
KeyValuePair show all
Defined in:
lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb

Instance Attribute Summary collapse

Attributes inherited from KeyValuePair

#key, #value

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#must_write_reasonString

Returns the current value of must_write_reason.

Returns:

  • (String)

    the current value of must_write_reason



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

def must_write_reason
  @must_write_reason
end

#statusString

Returns the current value of status.

Returns:

  • (String)

    the current value of status



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

def status
  @status
end

Instance Method Details

#from_hash(hash) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb', line 28

def from_hash(hash)
  super
  if hash.has_key? 'mustWriteReason'
    @must_write_reason = hash['mustWriteReason']
  end
  if hash.has_key? 'status'
    @status = hash['status']
  end
end

#to_hHash

Returns:

  • (Hash)


21
22
23
24
25
26
# File 'lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb', line 21

def to_h
  hash = super
  hash['mustWriteReason'] = @must_write_reason unless @must_write_reason.nil?
  hash['status'] = @status unless @status.nil?
  hash
end