module Picfit
Constants
- VERSION
Public Class Methods
client()
click to toggle source
Get the common client
# File lib/picfit.rb, line 13 def self.client @client ||= init end
client=(client)
click to toggle source
Set the common client
# File lib/picfit.rb, line 18 def self.client=(client) @client = client end
init(options={})
click to toggle source
# File lib/picfit.rb, line 8 def self.init(options={}) @client = Picfit::Client.new(options) end
method_missing(method, *args, &block)
click to toggle source
Delegate to Picfit::Client
Calls superclass method
# File lib/picfit.rb, line 23 def self.method_missing(method, *args, &block) return super unless client.respond_to?(method) client.send(method, *args, &block) end
respond_to?(method)
click to toggle source
Delegate to Picfit::Client
Calls superclass method
# File lib/picfit.rb, line 29 def self.respond_to?(method) return client.respond_to?(method) || super end