class QuakeliveApi::Profile
Attributes
player_name[RW]
Public Class Methods
new(player_name)
click to toggle source
# File lib/quakelive_api/profile.rb, line 5 def initialize(player_name) @player_name = player_name end
Public Instance Methods
awards_experience()
click to toggle source
# File lib/quakelive_api/profile.rb, line 21 def awards_experience @awards_experience ||= Awards::Experience.new(player_name) end
awards_milestones()
click to toggle source
# File lib/quakelive_api/profile.rb, line 17 def awards_milestones @awards_milestones ||= Awards::CareerMilestones.new(player_name) end
awards_skillz()
click to toggle source
# File lib/quakelive_api/profile.rb, line 25 def awards_skillz @awards_skillz ||= Awards::MadSkillz.new(player_name) end
awards_success()
click to toggle source
# File lib/quakelive_api/profile.rb, line 33 def awards_success @awards_success ||= Awards::SweetSuccess.new(player_name) end
each_award(&block)
click to toggle source
# File lib/quakelive_api/profile.rb, line 37 def each_award(&block) %w(awards_milestones awards_experience awards_skillz awards_social awards_success).each do |awards| block.call(send(awards)) end end
statistics()
click to toggle source
# File lib/quakelive_api/profile.rb, line 13 def statistics @statistics ||= Statistics.new(player_name) end
summary()
click to toggle source
# File lib/quakelive_api/profile.rb, line 9 def summary @summary ||= Summary.new(player_name) end