Class: Halo::Halo5::Profile
Instance Method Summary
collapse
Methods inherited from APIResponse
#cached?, #get_data, #perform_uncached_request, #redis_store, #ttl
Constructor Details
#initialize(options = {}) ⇒ Profile
Returns a new instance of Profile.
6
7
8
9
10
11
|
# File 'lib/halo-api/modules/halo5/profile.rb', line 6
def initialize(options = {})
@player = options.delete(:player)
@endpoint = "/profile/h5/profiles/#{@player}"
super(options)
end
|
Instance Method Details
#player_appearance(options = {}) ⇒ Object
13
14
15
|
# File 'lib/halo-api/modules/halo5/profile.rb', line 13
def player_appearance(options = {})
get_data("#{@endpoint}/appearance", options)
end
|
#player_emblem_image(options = {}) ⇒ Object
17
18
19
|
# File 'lib/halo-api/modules/halo5/profile.rb', line 17
def player_emblem_image(options = {})
get_data("#{@endpoint}/emblem", options)
end
|
#player_spartan_image(options = {}) ⇒ Object
21
22
23
|
# File 'lib/halo-api/modules/halo5/profile.rb', line 21
def player_spartan_image(options = {})
get_data("#{@endpoint}/spartan", options)
end
|