Class: Yoti::AmlAddress
- Inherits:
-
Object
- Object
- Yoti::AmlAddress
- Defined in:
- lib/yoti/http/payloads/aml_address.rb
Overview
Manages the AML check Address object
Instance Attribute Summary collapse
-
#country ⇒ String
The country of residence in a ISO 3166 3-letter code format.
-
#post_code ⇒ String
The postcode required for USA, optional otherwise.
Instance Method Summary collapse
-
#initialize(country, post_code = nil) ⇒ AmlAddress
constructor
A new instance of AmlAddress.
Constructor Details
#initialize(country, post_code = nil) ⇒ AmlAddress
Returns a new instance of AmlAddress.
10 11 12 13 14 15 |
# File 'lib/yoti/http/payloads/aml_address.rb', line 10 def initialize(country, post_code = nil) raise AmlError, 'AmlAddress requires a country.' if country.to_s.empty? @country = country @post_code = post_code end |
Instance Attribute Details
#country ⇒ String
Returns the country of residence in a ISO 3166 3-letter code format.
5 6 7 |
# File 'lib/yoti/http/payloads/aml_address.rb', line 5 def country @country end |
#post_code ⇒ String
Returns the postcode required for USA, optional otherwise.
8 9 10 |
# File 'lib/yoti/http/payloads/aml_address.rb', line 8 def post_code @post_code end |