Module: DogeCoin

Defined in:
lib/dogecoin.rb,
lib/dogecoin/client.rb,
lib/dogecoin/configuration.rb

Defined Under Namespace

Modules: Configuration Classes: Client

Class Method Summary collapse

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to DogeCoin::Client



12
13
14
15
# File 'lib/dogecoin.rb', line 12

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

.newObject

Creates an alias for DogeCoin::Client.new



7
8
9
# File 'lib/dogecoin.rb', line 7

def new
  @client ||= DogeCoin::Client.new
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


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

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