Class: BROpenData::Chamber::Service

Inherits:
ParentService show all
Includes:
Singleton
Defined in:
lib/br_open_data/chamber/service.rb

Instance Attribute Summary

Attributes inherited from ParentService

#domain, #params, #path

Instance Method Summary collapse

Constructor Details

#initializeService

Returns a new instance of Service.



4
5
6
# File 'lib/br_open_data/chamber/service.rb', line 4

def initialize
  self.domain = 'www.camara.gov.br/SitCamaraWS'
end

Instance Method Details

#propositions(params = {}) ⇒ Object

Return projects/propositions of Laws & Constitutional



12
13
14
15
16
17
# File 'lib/br_open_data/chamber/service.rb', line 12

def propositions(params={})
  self.path='Proposicoes.asmx/ListarProposicoes'
  setup_propositions(params)
  resp = perform_get_request
  resp[:proposicoes][:proposicao]
end