Class: TransparenciaAlagoas::Patrimony
- Inherits:
-
Object
- Object
- TransparenciaAlagoas::Patrimony
- Defined in:
- lib/models/patrimony.rb
Class Method Summary collapse
- .material_detail(qty: 10, offset: 0, ug_code: nil, material: nil, options: {}) ⇒ Object
- .materials_list(qty: 10, offset: 0, ug_code: nil, options: {}) ⇒ Object
- .property_list(qty: 10, offset: 0, options: {}) ⇒ Object
- .ug_list(qty: 10, offset: 0, options: {}) ⇒ Object
Class Method Details
.material_detail(qty: 10, offset: 0, ug_code: nil, material: nil, options: {}) ⇒ Object
21 22 23 24 25 |
# File 'lib/models/patrimony.rb', line 21 def self.material_detail(qty: 10, offset: 0, ug_code: nil, material: nil, options: {}) # return the detailing of a given material in a given UG url = "/patrimonio/json-patrimonio-mobiliario-detalhes/#{ug_code}/#{material}/?limit=#{qty}&offset=#{offset}" TransparenciaAlagoas::dispatch_get_request(url, ) end |
.materials_list(qty: 10, offset: 0, ug_code: nil, options: {}) ⇒ Object
15 16 17 18 19 |
# File 'lib/models/patrimony.rb', line 15 def self.materials_list(qty: 10, offset: 0, ug_code: nil, options: {}) # Return the list of material owned by a given UG (Unidade Gestora) url = "/patrimonio/json-patrimonio-mobiliario-materiais/#{ug_code}/?limit=#{qty}&offset=#{offset}" TransparenciaAlagoas::dispatch_get_request(url, ) end |
.property_list(qty: 10, offset: 0, options: {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/models/patrimony.rb', line 3 def self.property_list(qty: 10, offset: 0, options: {}) # return a list of government properties url = "/patrimonio/json-patrimonio-imobiliario/?limit=#{qty}&offset=#{offset}" TransparenciaAlagoas::dispatch_get_request(url, ) end |
.ug_list(qty: 10, offset: 0, options: {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/models/patrimony.rb', line 9 def self.ug_list(qty: 10, offset: 0, options: {}) # Return the list of UGs (Unidades Gestoras) url = "/patrimonio/json-patrimonio-mobiliario/?limit=#{qty}&offset=#{offset}" TransparenciaAlagoas::dispatch_get_request(url, ) end |