Class: GlitchAPI
- Inherits:
-
Object
- Object
- GlitchAPI
- Defined in:
- lib/rbglitch.rb
Overview
The glue holding everything together.
Instance Attribute Summary collapse
-
#achievements ⇒ Object
readonly
Returns the value of attribute achievements.
-
#auctions ⇒ Object
readonly
Returns the value of attribute auctions.
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#avatar ⇒ Object
readonly
Returns the value of attribute avatar.
-
#calendar ⇒ Object
readonly
Returns the value of attribute calendar.
-
#locations ⇒ Object
readonly
Returns the value of attribute locations.
-
#players ⇒ Object
readonly
Returns the value of attribute players.
-
#skills ⇒ Object
readonly
Returns the value of attribute skills.
Instance Method Summary collapse
-
#initialize(player_token = '') ⇒ GlitchAPI
constructor
A new instance of GlitchAPI.
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
#achievements ⇒ Object (readonly)
Returns the value of attribute achievements.
14 15 16 |
# File 'lib/rbglitch.rb', line 14 def achievements @achievements end |
#auctions ⇒ Object (readonly)
Returns the value of attribute auctions.
14 15 16 |
# File 'lib/rbglitch.rb', line 14 def auctions @auctions end |
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
14 15 16 |
# File 'lib/rbglitch.rb', line 14 def auth @auth end |
#avatar ⇒ Object (readonly)
Returns the value of attribute avatar.
14 15 16 |
# File 'lib/rbglitch.rb', line 14 def avatar @avatar end |
#calendar ⇒ Object (readonly)
Returns the value of attribute calendar.
14 15 16 |
# File 'lib/rbglitch.rb', line 14 def calendar @calendar end |
#locations ⇒ Object (readonly)
Returns the value of attribute locations.
14 15 16 |
# File 'lib/rbglitch.rb', line 14 def locations @locations end |
#players ⇒ Object (readonly)
Returns the value of attribute players.
15 16 17 |
# File 'lib/rbglitch.rb', line 15 def players @players end |
#skills ⇒ Object (readonly)
Returns the value of attribute skills.
15 16 17 |
# File 'lib/rbglitch.rb', line 15 def skills @skills end |