Class: SmartyStreets::InternationalPostalCode::Lookup
- Inherits:
-
Object
- Object
- SmartyStreets::InternationalPostalCode::Lookup
- Defined in:
- lib/smartystreets_ruby_sdk/international_postal_code/lookup.rb
Overview
Holds the input data for a postal code lookup and the results returned by the API. See smartystreets.com/docs/cloud/international-postal-code-api
Instance Attribute Summary collapse
-
#administrative_area ⇒ Object
Returns the value of attribute administrative_area.
-
#country ⇒ Object
Returns the value of attribute country.
-
#input_id ⇒ Object
Returns the value of attribute input_id.
-
#locality ⇒ Object
Returns the value of attribute locality.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#results ⇒ Object
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize ⇒ Lookup
constructor
A new instance of Lookup.
Constructor Details
#initialize ⇒ Lookup
Returns a new instance of Lookup.
9 10 11 12 13 14 15 16 |
# File 'lib/smartystreets_ruby_sdk/international_postal_code/lookup.rb', line 9 def initialize @input_id = nil @country = nil @locality = nil @administrative_area = nil @postal_code = nil @results = [] end |
Instance Attribute Details
#administrative_area ⇒ Object
Returns the value of attribute administrative_area.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/international_postal_code/lookup.rb', line 7 def administrative_area @administrative_area end |
#country ⇒ Object
Returns the value of attribute country.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/international_postal_code/lookup.rb', line 7 def country @country end |
#input_id ⇒ Object
Returns the value of attribute input_id.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/international_postal_code/lookup.rb', line 7 def input_id @input_id end |
#locality ⇒ Object
Returns the value of attribute locality.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/international_postal_code/lookup.rb', line 7 def locality @locality end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/international_postal_code/lookup.rb', line 7 def postal_code @postal_code end |
#results ⇒ Object
Returns the value of attribute results.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/international_postal_code/lookup.rb', line 7 def results @results end |