Class: RBGlitch::BaseAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/rbglitch/base_api.rb

Overview

The base class from which all the other API things extend.

Instance Method Summary collapse

Constructor Details

#initialize(player_token = '') ⇒ BaseAPI

Returns a new instance of BaseAPI.



7
8
9
10
# File 'lib/rbglitch/base_api.rb', line 7

def initialize(player_token = '')
  @api_base = 'api.glitch.com'
  @player_token = player_token
end