Sha256: 3dd4f033407c6c0a11268a20e5b112567d73c828bb1278d98384b66eb8ebde9e
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
# encoding: UTF-8 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/certificate_resource' require 'passworks/template_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
passworks-2.0.7 | lib/passworks.rb |