Class: OnlinePayments::SDK::Domain::DirectoryEntry
- Inherits:
-
DataObject
- Object
- DataObject
- OnlinePayments::SDK::Domain::DirectoryEntry
- Defined in:
- lib/onlinepayments/sdk/domain/directory_entry.rb
Instance Attribute Summary collapse
-
#issuer_id ⇒ String
The current value of issuer_id.
-
#issuer_list ⇒ String
The current value of issuer_list.
-
#issuer_name ⇒ String
The current value of issuer_name.
Instance Method Summary collapse
Methods inherited from DataObject
Instance Attribute Details
#issuer_id ⇒ String
Returns 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_list ⇒ String
Returns 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_name ⇒ String
Returns 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
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/onlinepayments/sdk/domain/directory_entry.rb', line 29 def from_hash(hash) super if hash.has_key? 'issuerId' @issuer_id = hash['issuerId'] end if hash.has_key? 'issuerList' @issuer_list = hash['issuerList'] end if hash.has_key? 'issuerName' @issuer_name = hash['issuerName'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/domain/directory_entry.rb', line 21 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 |