Class: Reach::API

Inherits:
Object
  • Object
show all
Includes:
HTTParty, File, Game, Player
Defined in:
lib/reach/api.rb,
lib/reach/api/file.rb,
lib/reach/api/game.rb,
lib/reach/api/player.rb

Defined Under Namespace

Modules: File, Game, Player

Constant Summary collapse

ENDPOINT =

API endpoint

"http://www.bungie.net/api/reach/reachapijson.svc/"

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from File

#get_file_details, #get_player_file_set_files, #get_player_file_sets, #get_player_file_share, #get_player_recent_screenshots, #get_player_rendered_videos, #reach_file_search

Methods included from Player

#get_game_history, #get_player_details_with_no_stats, #get_player_details_with_stats_by_map, #get_player_details_with_stats_by_playlist

Methods included from Game

#get_current_challenges, #get_game_details, #get_game_metadata

Constructor Details

#initialize(key) ⇒ API

Public: Creates a new API object

key - the API key used throughout the application

Returns a new Reach::API object



28
29
30
# File 'lib/reach/api.rb', line 28

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

API key



21
22
23
# File 'lib/reach/api.rb', line 21

def key
  @key
end