Class: TF2Medic

Inherits:
Object
  • Object
show all
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

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

#name, #play_time

Instance Method Summary collapse

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_healedObject (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_uberchargesObject (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