Class: Worldline::Connect::SDK::V1::Domain::DirectoryEntry
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::DirectoryEntry
- Defined in:
- lib/worldline/connect/sdk/v1/domain/directory_entry.rb
Instance Attribute Summary collapse
-
#country_names ⇒ Array<String>
The current value of country_names.
-
#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 Domain::DataObject
Instance Attribute Details
#country_names ⇒ Array<String>
Returns the current value of country_names.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/directory_entry.rb', line 16 def country_names @country_names end |
#issuer_id ⇒ String
Returns the current value of issuer_id.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/directory_entry.rb', line 16 def issuer_id @issuer_id end |
#issuer_list ⇒ String
Returns the current value of issuer_list.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/directory_entry.rb', line 16 def issuer_list @issuer_list end |
#issuer_name ⇒ String
Returns the current value of issuer_name.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/directory_entry.rb', line 16 def issuer_name @issuer_name end |
Instance Method Details
#from_hash(hash) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/worldline/connect/sdk/v1/domain/directory_entry.rb', line 36 def from_hash(hash) super if hash.has_key? 'countryNames' raise TypeError, "value '%s' is not an Array" % [hash['countryNames']] unless hash['countryNames'].is_a? Array @country_names = [] hash['countryNames'].each do |e| @country_names << e end end 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
27 28 29 30 31 32 33 34 |
# File 'lib/worldline/connect/sdk/v1/domain/directory_entry.rb', line 27 def to_h hash = super hash['countryNames'] = @country_names unless @country_names.nil? 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 |