Module: Reach

Defined in:
lib/reach-api.rb,
lib/reach/api.rb,
lib/reach/helper.rb,
lib/reach/version.rb,
lib/reach/api/file.rb,
lib/reach/api/game.rb,
lib/reach/api/player.rb

Defined Under Namespace

Classes: API, Helper, Version

Class Method Summary collapse

Class Method Details

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

Delegate to Reach::API



12
13
14
15
# File 'lib/reach-api.rb', line 12

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

.new(options) ⇒ Object

Alias for Reach::API.new

Returns a Reach::API object



7
8
9
# File 'lib/reach-api.rb', line 7

def new(options)
  Reach::API.new(options)
end

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/reach-api.rb', line 17

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