module Passworks

Passworks

Constants

VERSION

Public Class Methods

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

@!visibility private

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

Creates an instance of {Passworks::Client} to allow access to Passworks API @param [Hash] options @option options [String] :endpoint Defines the API end point (see {Passworks::Configuration::DEFAULT_ENDPOINT} for default endpoint) @option options [String] :api_username Your API username @option options [String] :api_secret Your API secret key @option options [Boolean] :debug Enables debug messages to STDOUT

@return [Passworks::Client]

# File lib/passworks.rb, line 36
def self.new(options={})
  merged_options = self.options.merge(options)
  @client = Client.new(merged_options) unless defined?(@client) && @client.same_options?(merged_options)
  @client
end
respond_to?(method, include_all=false) click to toggle source

@!visibility private

Calls superclass method
# File lib/passworks.rb, line 43
def self.respond_to?(method, include_all=false)
  new.respond_to?(method, include_all) || super
end