Sha256: 161e841e2523507baebd706303f7f6bb38627e735cfff864e381c57d43eeaf8f

Contents?: true

Size: 639 Bytes

Versions: 6

Compression:

Stored size: 639 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

    # 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

6 entries across 6 versions & 1 rubygems

Version Path
cashstar-0.1.5 lib/cashstar.rb
cashstar-0.1.4 lib/cashstar.rb
cashstar-0.1.3 lib/cashstar.rb
cashstar-0.1.2 lib/cashstar.rb
cashstar-0.1.1 lib/cashstar.rb
cashstar-0.1.0 lib/cashstar.rb