Class: Halo::Halo5::Profile
- Inherits:
-
APIResponse
- Object
- APIResponse
- Halo::Halo5::Profile
- Defined in:
- lib/halo-api/modules/halo5/profile.rb
Instance Attribute Summary
Attributes inherited from APIResponse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Profile
constructor
A new instance of Profile.
- #player_appearance(options = {}) ⇒ Object
- #player_emblem_image(options = {}) ⇒ Object
- #player_spartan_image(options = {}) ⇒ Object
Methods inherited from APIResponse
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( = {}) @player = .delete(:player) @endpoint = "/profile/h5/profiles/#{@player}" super() end |
Instance Method Details
#player_appearance(options = {}) ⇒ Object
12 13 14 |
# File 'lib/halo-api/modules/halo5/profile.rb', line 12 def player_appearance( = {}) get_data("#{@endpoint}/appearance", ) end |
#player_emblem_image(options = {}) ⇒ Object
16 17 18 |
# File 'lib/halo-api/modules/halo5/profile.rb', line 16 def player_emblem_image( = {}) get_data("#{@endpoint}/emblem", ) end |
#player_spartan_image(options = {}) ⇒ Object
20 21 22 |
# File 'lib/halo-api/modules/halo5/profile.rb', line 20 def player_spartan_image( = {}) get_data("#{@endpoint}/spartan", ) end |