Class: TransparenciaAlagoas::Bidding
- Inherits:
-
Object
- Object
- TransparenciaAlagoas::Bidding
- Defined in:
- lib/models/bidding.rb
Class Method Summary collapse
Class Method Details
.get(qty: 10, offset: 0, options: {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/models/bidding.rb', line 3 def self.get(qty: 10, offset: 0, options: {}) # Return biddings url = "/licitacao/json-editais/?limit=#{qty}&offset=#{offset}" if != nil if .key? :start_date url += "&data_realizacao_dti_=#{[:start_date]}" .delete(:start_date) end if .key? :end_date url += "&data_realizacao_dtf_=#{[:end_date]}" .delete(:end_date) end end TransparenciaAlagoas::dispatch_get_request(url) end |