Class: GlitchAPI

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

Overview

The glue holding everything together.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(player_token = '') ⇒ GlitchAPI

Returns a new instance of GlitchAPI.



17
18
19
20
21
22
23
24
25
26
# File 'lib/rbglitch.rb', line 17

def initialize(player_token = '')
  @achievements = RBGlitch::AchievementsAPI.new(player_token)
  @auctions = RBGlitch::AuctionsAPI.new(player_token)
  @auth = RBGlitch::AuthAPI.new(player_token)
  @avatar = RBGlitch::AvatarAPI.new(player_token)
  @calendar = RBGlitch::CalendarAPI.new(player_token)
  @locations = RBGlitch::LocationsAPI.new(player_token)
  @players = RBGlitch::PlayersAPI.new(player_token)
  @skills = RBGlitch::SkillsAPI.new(player_token)
end

Instance Attribute Details

#achievementsObject (readonly)

Returns the value of attribute achievements.



14
15
16
# File 'lib/rbglitch.rb', line 14

def achievements
  @achievements
end

#auctionsObject (readonly)

Returns the value of attribute auctions.



14
15
16
# File 'lib/rbglitch.rb', line 14

def auctions
  @auctions
end

#authObject (readonly)

Returns the value of attribute auth.



14
15
16
# File 'lib/rbglitch.rb', line 14

def auth
  @auth
end

#avatarObject (readonly)

Returns the value of attribute avatar.



14
15
16
# File 'lib/rbglitch.rb', line 14

def avatar
  @avatar
end

#calendarObject (readonly)

Returns the value of attribute calendar.



14
15
16
# File 'lib/rbglitch.rb', line 14

def calendar
  @calendar
end

#locationsObject (readonly)

Returns the value of attribute locations.



14
15
16
# File 'lib/rbglitch.rb', line 14

def locations
  @locations
end

#playersObject (readonly)

Returns the value of attribute players.



15
16
17
# File 'lib/rbglitch.rb', line 15

def players
  @players
end

#skillsObject (readonly)

Returns the value of attribute skills.



15
16
17
# File 'lib/rbglitch.rb', line 15

def skills
  @skills
end