Sha256: 2e326dbe1f254391166db0885215082d3b9066c6d158a8b47ec627b65c47329d

Contents?: true

Size: 651 Bytes

Versions: 7

Compression:

Stored size: 651 Bytes

Contents

require 'cashstar/api'
require 'cashstar/client'
require 'cashstar/configuration'
require 'cashstar/error'


module Cashstar
  extend Configuration
  class << self
    # Alias for Cashstar::Client.new
    #
    # @return [Cashstar::Client]
    def new(options={})
      Cashstar::Client.new(options)
    end

    private
    # Delegate to Cashstar::Client
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    def respond_to?(method, include_private = false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cashstar-ruby-0.2.4 lib/cashstar.rb
cashstar-ruby-0.2.3 lib/cashstar.rb
cashstar-ruby-0.2.2 lib/cashstar.rb
cashstar-ruby-0.2.1 lib/cashstar.rb
cashstar-ruby-0.2.0 lib/cashstar.rb
cashstar-ruby-0.1.8 lib/cashstar.rb
cashstar-ruby-0.1.7 lib/cashstar.rb