Class: Reach::API
- Inherits:
-
Object
- Object
- Reach::API
- Defined in:
- lib/reach/api.rb,
lib/reach/api/file.rb,
lib/reach/api/game.rb,
lib/reach/api/player.rb
Defined Under Namespace
Constant Summary collapse
- ENDPOINT =
API endpoint
"http://www.bungie.net/api/reach/reachapijson.svc/"
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
API key.
Instance Method Summary collapse
-
#initialize(key) ⇒ API
constructor
Public: Creates a new API object.
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
#key ⇒ Object (readonly)
API key
21 22 23 |
# File 'lib/reach/api.rb', line 21 def key @key end |