Class: Wowr::Classes::Pvp
- Inherits:
-
Object
- Object
- Wowr::Classes::Pvp
- Defined in:
- lib/wowr/character.rb
Overview
Player-versus-player data
Instance Attribute Summary collapse
-
#arena_currency ⇒ Object
readonly
Returns the value of attribute arena_currency.
-
#lifetime_honorable_kills ⇒ Object
readonly
Returns the value of attribute lifetime_honorable_kills.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Pvp
constructor
A new instance of Pvp.
Constructor Details
#initialize(elem) ⇒ Pvp
Returns a new instance of Pvp.
673 674 675 676 |
# File 'lib/wowr/character.rb', line 673 def initialize(elem) @lifetime_honorable_kills = (elem%'lifetimehonorablekills')[:value].to_i @arena_currency = (elem%'arenacurrency')[:value].to_i end |
Instance Attribute Details
#arena_currency ⇒ Object (readonly)
Returns the value of attribute arena_currency.
671 672 673 |
# File 'lib/wowr/character.rb', line 671 def arena_currency @arena_currency end |
#lifetime_honorable_kills ⇒ Object (readonly)
Returns the value of attribute lifetime_honorable_kills.
671 672 673 |
# File 'lib/wowr/character.rb', line 671 def lifetime_honorable_kills @lifetime_honorable_kills end |