Class: SmartyStreets::InternationalPostalCode::Lookup

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeLookup

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_areaObject

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

#countryObject

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_idObject

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

#localityObject

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_codeObject

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

#resultsObject

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