Class: Wowr::Classes::Pvp

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/character.rb

Overview

Player-versus-player data

Instance Attribute Summary collapse

Instance Method Summary collapse

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_currencyObject (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_killsObject (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