Module: TradeHill

Extended by:
Configuration
Defined in:
lib/tradehill.rb,
lib/tradehill/error.rb,
lib/tradehill/client.rb,
lib/tradehill/version.rb,
lib/tradehill/request.rb,
lib/tradehill/connection.rb,
lib/tradehill/configuration.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: Client, Error

Constant Summary

VERSION =
"0.3.2"

Constants included from Configuration

Configuration::DEFAULT_CURRENCY, Configuration::DEFAULT_VERSION, Configuration::VALID_OPTIONS_KEYS

Class Method Summary (collapse)

Methods included from Configuration

configure, extended, options, reset

Class Method Details

+ (Object) method_missing(method, *args, &block)

Delegate to TradeHill::Client



16
17
18
19
# File 'lib/tradehill.rb', line 16

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

+ (TradeHill::Client) new

Alias for TradeHill::Client.new

Returns:



11
12
13
# File 'lib/tradehill.rb', line 11

def new
  TradeHill::Client.new
end

+ (Boolean) respond_to?(method, include_private = false)

Returns:

  • (Boolean)


21
22
23
# File 'lib/tradehill.rb', line 21

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