Class: Worldline::Connect::SDK::V1::Domain::Swift
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::Swift
- Defined in:
- lib/worldline/connect/sdk/v1/domain/swift.rb
Instance Attribute Summary collapse
-
#bic ⇒ String
The current value of bic.
-
#category ⇒ String
The current value of category.
-
#chips_uid ⇒ String
The current value of chips_uid.
-
#extra_info ⇒ String
The current value of extra_info.
-
#po_box_country ⇒ String
The current value of po_box_country.
-
#po_box_location ⇒ String
The current value of po_box_location.
-
#po_box_number ⇒ String
The current value of po_box_number.
-
#po_box_zip ⇒ String
The current value of po_box_zip.
-
#routing_bic ⇒ String
The current value of routing_bic.
-
#services ⇒ String
The current value of services.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#bic ⇒ String
Returns the current value of bic.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def bic @bic end |
#category ⇒ String
Returns the current value of category.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def category @category end |
#chips_uid ⇒ String
Returns the current value of chips_uid.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def chips_uid @chips_uid end |
#extra_info ⇒ String
Returns the current value of extra_info.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def extra_info @extra_info end |
#po_box_country ⇒ String
Returns the current value of po_box_country.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def po_box_country @po_box_country end |
#po_box_location ⇒ String
Returns the current value of po_box_location.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def po_box_location @po_box_location end |
#po_box_number ⇒ String
Returns the current value of po_box_number.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def po_box_number @po_box_number end |
#po_box_zip ⇒ String
Returns the current value of po_box_zip.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def po_box_zip @po_box_zip end |
#routing_bic ⇒ String
Returns the current value of routing_bic.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def routing_bic @routing_bic end |
#services ⇒ String
Returns the current value of services.
22 23 24 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 22 def services @services end |
Instance Method Details
#from_hash(hash) ⇒ Object
[View source]
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 60 def from_hash(hash) super if hash.has_key? 'bic' @bic = hash['bic'] end if hash.has_key? 'category' @category = hash['category'] end if hash.has_key? 'chipsUID' @chips_uid = hash['chipsUID'] end if hash.has_key? 'extraInfo' @extra_info = hash['extraInfo'] end if hash.has_key? 'poBoxCountry' @po_box_country = hash['poBoxCountry'] end if hash.has_key? 'poBoxLocation' @po_box_location = hash['poBoxLocation'] end if hash.has_key? 'poBoxNumber' @po_box_number = hash['poBoxNumber'] end if hash.has_key? 'poBoxZip' @po_box_zip = hash['poBoxZip'] end if hash.has_key? 'routingBic' @routing_bic = hash['routingBic'] end if hash.has_key? 'services' @services = hash['services'] end end |
#to_h ⇒ Hash
45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/worldline/connect/sdk/v1/domain/swift.rb', line 45 def to_h hash = super hash['bic'] = @bic unless @bic.nil? hash['category'] = @category unless @category.nil? hash['chipsUID'] = @chips_uid unless @chips_uid.nil? hash['extraInfo'] = @extra_info unless @extra_info.nil? hash['poBoxCountry'] = @po_box_country unless @po_box_country.nil? hash['poBoxLocation'] = @po_box_location unless @po_box_location.nil? hash['poBoxNumber'] = @po_box_number unless @po_box_number.nil? hash['poBoxZip'] = @po_box_zip unless @po_box_zip.nil? hash['routingBic'] = @routing_bic unless @routing_bic.nil? hash['services'] = @services unless @services.nil? hash end |