Module: CongregaPlenum
- Defined in:
- lib/congrega_plenum.rb,
lib/client.rb,
lib/version.rb,
lib/adapters/http_adapter.rb,
lib/adapters/retry_policy.rb,
lib/modules/parties_service.rb,
lib/modules/votings_service.rb,
lib/adapters/response_handler.rb,
lib/modules/congressmen_service.rb,
lib/modules/legislatures_service.rb
Overview
CongregaPlenum centralizes access to the Brazilian Chamber of Deputies public API. It exposes a global configuration and service objects for each resource.
Defined Under Namespace
Classes: APIError, Client, Configuration, CongressmenService, ConnectionError, Error, HttpAdapter, LegislaturesService, PartiesService, RateLimitError, ResponseHandler, RetryPolicy, ServerError, VotingsService
Constant Summary collapse
- VERSION =
Current gem version.
'0.2.0'
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.configure {|config| ... } ⇒ Object
Yields the current Configuration so callers can override defaults.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
26 27 28 |
# File 'lib/congrega_plenum.rb', line 26 def configuration @configuration end |
Class Method Details
.configure {|config| ... } ⇒ Object
Yields the current Configuration so callers can override defaults.
32 33 34 35 36 |
# File 'lib/congrega_plenum.rb', line 32 def self.configure self.configuration ||= Configuration.new yield(configuration) end |