Sha256: 6b1402430e4b9c9a85712ed29b2d244fc7020d11840d40135171afb7d31a07c8
Contents?: true
Size: 1.56 KB
Versions: 4
Compression:
Stored size: 1.56 KB
Contents
require 'uri' require 'faraday' require 'faraday_middleware' require 'passworks/version' require 'passworks/configuration' require 'passworks/exception' require 'passworks/response' require 'passworks/inflector' require 'passworks/faraday/http_exception_middleware' require 'passworks/request' require 'passworks/request_proxy' require 'passworks/client' require 'passworks/collection_proxy' require 'passworks/resource' require 'passworks/campaign_resource' require 'passworks/asset_resource' require 'passworks/pass_resource' # Passworks module Passworks extend Configuration # 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] 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 # @!visibility private def self.respond_to?(method, include_all=false) new.respond_to?(method, include_all) || super end # @!visibility private def self.method_missing?(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
passworks-0.0.4 | lib/passworks.rb |
passworks-0.0.3 | lib/passworks.rb |
passworks-0.0.2 | lib/passworks.rb |
passworks-0.0.1 | lib/passworks.rb |