Class: TF2Medic
- Inherits:
-
Object
- Object
- TF2Medic
- Includes:
- TF2Class
- Defined in:
- lib/steam/community/tf2/tf2_medic.rb
Overview
Represents the stats for the Team Fortress 2 medic class for a specific user
Instance Attribute Summary collapse
-
#max_health_healed ⇒ Object
readonly
Returns the value of attribute max_health_healed.
-
#max_ubercharges ⇒ Object
readonly
Returns the value of attribute max_ubercharges.
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) ⇒ TF2Medic
constructor
A new instance of TF2Medic.
Constructor Details
#initialize(class_data) ⇒ TF2Medic
Returns a new instance of TF2Medic.
15 16 17 18 19 20 |
# File 'lib/steam/community/tf2/tf2_medic.rb', line 15 def initialize(class_data) super class_data @max_health_healed = class_data.elements['ihealthpointshealed'].text.to_i @max_ubercharges = class_data.elements['inuminvulnerable'].text.to_i end |
Instance Attribute Details
#max_health_healed ⇒ Object (readonly)
Returns the value of attribute max_health_healed.
13 14 15 |
# File 'lib/steam/community/tf2/tf2_medic.rb', line 13 def max_health_healed @max_health_healed end |
#max_ubercharges ⇒ Object (readonly)
Returns the value of attribute max_ubercharges.
13 14 15 |
# File 'lib/steam/community/tf2/tf2_medic.rb', line 13 def max_ubercharges @max_ubercharges end |