class Halo::Halo5::Profile

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method Halo::APIResponse::new
# 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

Public Instance Methods

player_appearance(options = {}) click to toggle source
# File lib/halo-api/modules/halo5/profile.rb, line 13
def player_appearance(options = {})
  get_data("#{@endpoint}/appearance", options)
end
player_emblem_image(options = {}) click to toggle source
# 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 = {}) click to toggle source
# File lib/halo-api/modules/halo5/profile.rb, line 21
def player_spartan_image(options = {})
  get_data("#{@endpoint}/spartan", options)
end