Class: USZipcode::Lookup
- Defined in:
- lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb
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.
6 7 8 9 10 11 12 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 6 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.
4 5 6 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 4 def city @city end |
#input_id ⇒ Object
Returns the value of attribute input_id.
4 5 6 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 4 def input_id @input_id end |
#result ⇒ Object
Returns the value of attribute result.
4 5 6 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 4 def result @result end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 4 def state @state end |
#zipcode ⇒ Object
Returns the value of attribute zipcode.
4 5 6 |
# File 'lib/smartystreets_ruby_sdk/us_zipcode/lookup.rb', line 4 def zipcode @zipcode end |