Class: DotkaM::Item
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
#id ⇒ Object
5
6
7
|
# File 'lib/dotka/item.rb', line 5
def id
@raw["id"].to_i
end
|
#localized_name ⇒ Object
11
12
13
|
# File 'lib/dotka/item.rb', line 11
def localized_name
@raw["localized_name"]
end
|
#name ⇒ Object
8
9
10
|
# File 'lib/dotka/item.rb', line 8
def name
@raw["name"]
end
|