Class: RBGlitch::BaseAPI
- Inherits:
-
Object
- Object
- RBGlitch::BaseAPI
- Defined in:
- lib/rbglitch/base_api.rb
Overview
The base class from which all the other API things extend.
Direct Known Subclasses
AchievementsAPI, AuctionsAPI, AuthAPI, AvatarAPI, CalendarAPI, LocationsAPI, PlayersAPI, SkillsAPI
Instance Method Summary collapse
-
#initialize(player_token = '') ⇒ BaseAPI
constructor
A new instance of BaseAPI.
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 |