Class: SigepWeb::ApiResponse
- Inherits:
-
Object
- Object
- SigepWeb::ApiResponse
- Defined in:
- lib/sigep_web/zip_query.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#complement ⇒ Object
readonly
Returns the value of attribute complement.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#neighborhood ⇒ Object
readonly
Returns the value of attribute neighborhood.
-
#other_complement ⇒ Object
readonly
Returns the value of attribute other_complement.
-
#uf ⇒ Object
readonly
Returns the value of attribute uf.
-
#zip ⇒ Object
readonly
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ApiResponse
constructor
A new instance of ApiResponse.
Constructor Details
#initialize(options = {}) ⇒ ApiResponse
Returns a new instance of ApiResponse.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/sigep_web/zip_query.rb', line 25 def initialize( = {}) @neighborhood = [:bairro] @zip = [:cep] @city = [:cidade] @complement = [:complemento] @other_complement = [:complemento2] @address = [:end] @id = [:id] @uf = [:uf] end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
22 23 24 |
# File 'lib/sigep_web/zip_query.rb', line 22 def address @address end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
22 23 24 |
# File 'lib/sigep_web/zip_query.rb', line 22 def city @city end |
#complement ⇒ Object (readonly)
Returns the value of attribute complement.
22 23 24 |
# File 'lib/sigep_web/zip_query.rb', line 22 def complement @complement end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
22 23 24 |
# File 'lib/sigep_web/zip_query.rb', line 22 def id @id end |
#neighborhood ⇒ Object (readonly)
Returns the value of attribute neighborhood.
22 23 24 |
# File 'lib/sigep_web/zip_query.rb', line 22 def neighborhood @neighborhood end |
#other_complement ⇒ Object (readonly)
Returns the value of attribute other_complement.
22 23 24 |
# File 'lib/sigep_web/zip_query.rb', line 22 def other_complement @other_complement end |
#uf ⇒ Object (readonly)
Returns the value of attribute uf.
22 23 24 |
# File 'lib/sigep_web/zip_query.rb', line 22 def uf @uf end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
22 23 24 |
# File 'lib/sigep_web/zip_query.rb', line 22 def zip @zip end |