Class: SmartyStreets::USZipcode::Lookup
- Defined in:
- lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb
Overview
In addition to holding all of the input data for this lookup, this class also
will contain the result of the lookup after it comes back from the API.
See "https://smartystreets.com/docs/cloud/us-zipcode-api#http-request-input-fields"
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#input_id ⇒ Object
Returns the value of attribute input_id.
-
#result ⇒ Object
Returns the value of attribute result.
-
#state ⇒ Object
Returns the value of attribute state.
-
#zipcode ⇒ Object
Returns the value of attribute zipcode.
Instance Method Summary collapse
-
#initialize(city = nil, state = nil, zipcode = nil, input_id = nil) ⇒ Lookup
constructor
A new instance of Lookup.
Methods inherited from JSONAble
Constructor Details
#initialize(city = nil, state = nil, zipcode = nil, input_id = nil) ⇒ Lookup
Returns a new instance of Lookup.
12 13 14 15 16 17 18 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 12 def initialize(city=nil, state=nil, zipcode=nil, input_id=nil) @result = nil @input_id = input_id @city = city @state = state @zipcode = zipcode end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
10 11 12 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 10 def city @city end |
#input_id ⇒ Object
Returns the value of attribute input_id.
10 11 12 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 10 def input_id @input_id end |
#result ⇒ Object
Returns the value of attribute result.
10 11 12 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 10 def result @result end |
#state ⇒ Object
Returns the value of attribute state.
10 11 12 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 10 def state @state end |
#zipcode ⇒ Object
Returns the value of attribute zipcode.
10 11 12 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 10 def zipcode @zipcode end |