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.
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/sigep_web/zip_query.rb', line 31 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.
28 29 30 |
# File 'lib/sigep_web/zip_query.rb', line 28 def address @address end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
28 29 30 |
# File 'lib/sigep_web/zip_query.rb', line 28 def city @city end |
#complement ⇒ Object (readonly)
Returns the value of attribute complement.
28 29 30 |
# File 'lib/sigep_web/zip_query.rb', line 28 def complement @complement end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
28 29 30 |
# File 'lib/sigep_web/zip_query.rb', line 28 def id @id end |
#neighborhood ⇒ Object (readonly)
Returns the value of attribute neighborhood.
28 29 30 |
# File 'lib/sigep_web/zip_query.rb', line 28 def neighborhood @neighborhood end |
#other_complement ⇒ Object (readonly)
Returns the value of attribute other_complement.
28 29 30 |
# File 'lib/sigep_web/zip_query.rb', line 28 def other_complement @other_complement end |
#uf ⇒ Object (readonly)
Returns the value of attribute uf.
28 29 30 |
# File 'lib/sigep_web/zip_query.rb', line 28 def uf @uf end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
28 29 30 |
# File 'lib/sigep_web/zip_query.rb', line 28 def zip @zip end |