Class: DotkaM::Hero

Inherits:
Raw
  • Object
show all
Defined in:
lib/dotka/hero.rb

Instance Attribute Summary

Attributes inherited from Raw

#raw

Instance Method Summary collapse

Methods inherited from Raw

#initialize

Constructor Details

This class inherits a constructor from DotkaM::Raw

Instance Method Details

#idObject



7
8
9
# File 'lib/dotka/hero.rb', line 7

def id
	@raw["id"].to_i
end

#localized_nameObject



15
16
17
# File 'lib/dotka/hero.rb', line 15

def localized_name
	@raw["localized_name"]
end

#nameObject



11
12
13
# File 'lib/dotka/hero.rb', line 11

def name
	@raw["name"]
end