module DocumentCloud

Public Class Methods

client() click to toggle source

Delegate to a DocumentCloud::Client

@return [DocumentCloud::Client]

# File lib/document_cloud.rb, line 19
def client
  @client = DocumentCloud::Client.new(credentials) unless defined?(@client)
  @client
end
client?() click to toggle source

Has a client been initialized on the DocumentCloud module?

@return [Boolean]

# File lib/document_cloud.rb, line 27
def client?
  !!@client
end
respond_to?(method_name, include_private=false) click to toggle source
Calls superclass method
# File lib/document_cloud.rb, line 32
def respond_to?(method_name, include_private=false)
  client.respond_to?(method_name, include_private) || super
end

Private Class Methods

method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/document_cloud.rb, line 38
def method_missing(method_name, *args, &block)
  return super unless client.respond_to?(method_name)
  client.send(method_name, *args, &block)
end