Module: CivicInformation

Includes:
HTTParty
Defined in:
lib/civic_information.rb,
lib/civic_information/version.rb,
lib/civic_information/configuration.rb,
lib/civic_information/models/representatives_resource.rb,
lib/civic_information/models/representatives_resource/office.rb,
lib/civic_information/models/representatives_resource/address.rb,
lib/civic_information/models/representatives_resource/channel.rb,
lib/civic_information/models/representatives_resource/division.rb,
lib/civic_information/models/representatives_resource/official.rb

Defined Under Namespace

Classes: Configuration, Error, RepresentativesResource

Constant Summary collapse

VERSION =
"1.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/civic_information/configuration.rb', line 5

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
11
# File 'lib/civic_information/configuration.rb', line 8

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end