Class: ZiptasticApi::Request
- Inherits:
-
Object
- Object
- ZiptasticApi::Request
- Defined in:
- lib/ziptastic_api/request.rb
Instance Attribute Summary collapse
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#zip_code ⇒ Object
readonly
Returns the value of attribute zip_code.
Instance Method Summary collapse
-
#initialize(country_code, zip_code) ⇒ Request
constructor
A new instance of Request.
- #response ⇒ Object
Constructor Details
#initialize(country_code, zip_code) ⇒ Request
Returns a new instance of Request.
5 6 7 |
# File 'lib/ziptastic_api/request.rb', line 5 def initialize(country_code, zip_code) @country_code, @zip_code = country_code.upcase, zip_code end |
Instance Attribute Details
#country_code ⇒ Object (readonly)
Returns the value of attribute country_code.
3 4 5 |
# File 'lib/ziptastic_api/request.rb', line 3 def country_code @country_code end |
#zip_code ⇒ Object (readonly)
Returns the value of attribute zip_code.
3 4 5 |
# File 'lib/ziptastic_api/request.rb', line 3 def zip_code @zip_code end |