Class: OnlinePayments::SDK::Domain::DirectoryEntry

Inherits:
OnlinePayments::SDK::DataObject show all
Defined in:
lib/onlinepayments/sdk/domain/directory_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#issuer_idString

Returns the current value of issuer_id.

Returns:

  • (String)

    the current value of issuer_id



12
13
14
# File 'lib/onlinepayments/sdk/domain/directory_entry.rb', line 12

def issuer_id
  @issuer_id
end

#issuer_listString

Returns the current value of issuer_list.

Returns:

  • (String)

    the current value of issuer_list



12
13
14
# File 'lib/onlinepayments/sdk/domain/directory_entry.rb', line 12

def issuer_list
  @issuer_list
end

#issuer_nameString

Returns the current value of issuer_name.

Returns:

  • (String)

    the current value of issuer_name



12
13
14
# File 'lib/onlinepayments/sdk/domain/directory_entry.rb', line 12

def issuer_name
  @issuer_name
end

Instance Method Details

#from_hash(hash) ⇒ Object



26
27
28
29
30
31
# File 'lib/onlinepayments/sdk/domain/directory_entry.rb', line 26

def from_hash(hash)
  super
  @issuer_id = hash['issuerId'] if hash.key? 'issuerId'
  @issuer_list = hash['issuerList'] if hash.key? 'issuerList'
  @issuer_name = hash['issuerName'] if hash.key? 'issuerName'
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
23
24
# File 'lib/onlinepayments/sdk/domain/directory_entry.rb', line 18

def to_h
  hash = super
  hash['issuerId'] = @issuer_id unless @issuer_id.nil?
  hash['issuerList'] = @issuer_list unless @issuer_list.nil?
  hash['issuerName'] = @issuer_name unless @issuer_name.nil?
  hash
end