module OpenCivicData

Constants

VERSION

Attributes

key[RW]

Public Instance Methods

method_missing(method, *args, &block) click to toggle source

Delegate to OpenCivicData::Client

Calls superclass method
# File lib/open_civic_data.rb, line 17
def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end
new(key = key) { |self| ... } click to toggle source

Alias for OpenCivicData::Client.new

@return [OpenCivicData::Client]

# File lib/open_civic_data.rb, line 10
def new(key = key)
  yield self if block_given?
  return @client if instance_variable_defined?(:@client) && @client.key == key
  @client = OpenCivicData::Client.new(key)
end
respond_to_missing?(method_name, include_private = false) click to toggle source

return [Boolean]

# File lib/open_civic_data.rb, line 23
def respond_to_missing?(method_name, include_private = false) new.respond_to?(method_name, include_private) end