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.
5
6
7
8
9
10
|
# File 'lib/halo-api/modules/halo5/profile.rb', line 5
def initialize(options = {})
@player = options.delete(:player)
@endpoint = "/profile/h5/profiles/#{@player}"
super(options)
end
|
Instance Method Details
#player_appearance(options = {}) ⇒ Object
12
13
14
|
# File 'lib/halo-api/modules/halo5/profile.rb', line 12
def player_appearance(options = {})
get_data("#{@endpoint}/appearance", options)
end
|
#player_emblem_image(options = {}) ⇒ Object
16
17
18
|
# File 'lib/halo-api/modules/halo5/profile.rb', line 16
def player_emblem_image(options = {})
get_data("#{@endpoint}/emblem", options)
end
|
#player_spartan_image(options = {}) ⇒ Object
20
21
22
|
# File 'lib/halo-api/modules/halo5/profile.rb', line 20
def player_spartan_image(options = {})
get_data("#{@endpoint}/spartan", options)
end
|