Class: TF2Sniper
- Inherits:
-
Object
- Object
- TF2Sniper
- Includes:
- TF2Class
- Defined in:
- lib/steam/community/tf2/tf2_sniper.rb
Overview
Represents the stats for the Team Fortress 2 sniper class for a specific user
Instance Attribute Summary
Attributes included from TF2Class
#max_buildings_destroyed, #max_captures, #max_damage, #max_defenses, #max_dominations, #max_kill_assists, #max_kills, #max_revenges, #max_score, #max_time_alive
Attributes included from GameClass
Instance Method Summary collapse
-
#initialize(class_data) ⇒ TF2Sniper
constructor
Creates a new instance of TF2Sniper based on the assigned XML data.
Constructor Details
#initialize(class_data) ⇒ TF2Sniper
Creates a new instance of TF2Sniper based on the assigned XML data
14 15 16 17 18 |
# File 'lib/steam/community/tf2/tf2_sniper.rb', line 14 def initialize(class_data) super class_data @max_headshots = class_data.elements['iheadshots'].text.to_i end |