Module: GoogleCivic

Defined in:
lib/google-civic.rb,
lib/google-civic/client.rb,
lib/google-civic/request.rb,
lib/google-civic/version.rb,
lib/google-civic/connection.rb

Defined Under Namespace

Modules: Connection, Request Classes: Client

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to GoogleCivic::Client.new



13
14
15
16
# File 'lib/google-civic.rb', line 13

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ GoogleCivic::Client

Alias for GoogleCivic::Client.new

Returns:



8
9
10
# File 'lib/google-civic.rb', line 8

def new(options={})
  GoogleCivic::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/google-civic.rb', line 18

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end