Class: TF2Spy
- Inherits:
-
Object
- Object
- TF2Spy
- Includes:
- TF2Class
- Defined in:
- lib/steam/community/tf2/tf2_spy.rb
Overview
Represents the stats for the Team Fortress 2 spy class for a specific user
Instance Attribute Summary collapse
-
#max_backstabs ⇒ Object
readonly
Returns the value of attribute max_backstabs.
-
#max_health_leeched ⇒ Object
readonly
Returns the value of attribute max_health_leeched.
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) ⇒ TF2Spy
constructor
Creates a new instance of TF2Spy based on the assigned XML data.
Constructor Details
#initialize(class_data) ⇒ TF2Spy
Creates a new instance of TF2Spy based on the assigned XML data
16 17 18 19 20 21 |
# File 'lib/steam/community/tf2/tf2_spy.rb', line 16 def initialize(class_data) super class_data @max_backstabs = class_data.elements['ibackstabs'].text.to_i @max_health_leeched = class_data.elements['ihealthpointsleached'].text.to_i end |
Instance Attribute Details
#max_backstabs ⇒ Object (readonly)
Returns the value of attribute max_backstabs.
13 14 15 |
# File 'lib/steam/community/tf2/tf2_spy.rb', line 13 def max_backstabs @max_backstabs end |
#max_health_leeched ⇒ Object (readonly)
Returns the value of attribute max_health_leeched.
13 14 15 |
# File 'lib/steam/community/tf2/tf2_spy.rb', line 13 def max_health_leeched @max_health_leeched end |