Sha256: 0d532731a7778445e03a5eefff40b3d0f9d7ab5eb1c3c7daa226db9094c786e4

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

require 'mtgox/models'
require 'mtgox/client'
require 'mtgox/configuration'

module MtGox
  extend Configuration
  class << self
    # Alias for MtGox::Client.new
    #
    # @return [MtGox::Client]
    def new
      MtGox::Client.new
    end

    # Delegate to MtGox::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

  # Custom error class for rescuing from all MtGox errors
  class Error < StandardError
  end

  class MysqlError < Error
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mt_gox-0.7.7 lib/mtgox.rb
mt_gox-0.7.6 lib/mtgox.rb
mt_gox-0.7.5 lib/mtgox.rb