Class: Wowr::Classes::ItemQuest
- Inherits:
-
Object
- Object
- Wowr::Classes::ItemQuest
- Defined in:
- lib/wowr/item.rb
Overview
<rewardFromQuests>
<quest name="Justice Dispensed" level="39" reqMinLevel="30" id="11206" area="Dustwallow Marsh" suggestedPartySize="0"></quest>
<quest name="Peace at Last" level="39" reqMinLevel="30" id="11152" area="Dustwallow Marsh" suggestedPartySize="0"></quest>
</rewardFromQuests> TODO: Rename
Instance Attribute Summary collapse
-
#area ⇒ Object
readonly
Returns the value of attribute area.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#min_level ⇒ Object
readonly
Returns the value of attribute min_level.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#suggested_party_size ⇒ Object
readonly
Returns the value of attribute suggested_party_size.
Instance Method Summary collapse
-
#initialize(elem) ⇒ ItemQuest
constructor
A new instance of ItemQuest.
Constructor Details
#initialize(elem) ⇒ ItemQuest
Returns a new instance of ItemQuest.
423 424 425 426 427 428 429 430 |
# File 'lib/wowr/item.rb', line 423 def initialize(elem) @name = elem[:name] @id = elem[:id].to_i @level = elem[:level].to_i @min_level = elem[:min_level].to_i @area = elem[:area] @suggested_party_size = elem[:suggested_party_size].to_i end |
Instance Attribute Details
#area ⇒ Object (readonly)
Returns the value of attribute area.
421 422 423 |
# File 'lib/wowr/item.rb', line 421 def area @area end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
421 422 423 |
# File 'lib/wowr/item.rb', line 421 def id @id end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
421 422 423 |
# File 'lib/wowr/item.rb', line 421 def level @level end |
#min_level ⇒ Object (readonly)
Returns the value of attribute min_level.
421 422 423 |
# File 'lib/wowr/item.rb', line 421 def min_level @min_level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
421 422 423 |
# File 'lib/wowr/item.rb', line 421 def name @name end |
#suggested_party_size ⇒ Object (readonly)
Returns the value of attribute suggested_party_size.
421 422 423 |
# File 'lib/wowr/item.rb', line 421 def suggested_party_size @suggested_party_size end |