Class: PfrpgReaders::PrettyItem
- Inherits:
-
Object
- Object
- PfrpgReaders::PrettyItem
- Defined in:
- lib/pfrpg_readers/inventory_reader.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#equipped ⇒ Object
readonly
Returns the value of attribute equipped.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#slot ⇒ Object
readonly
Returns the value of attribute slot.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(item) ⇒ PrettyItem
constructor
A new instance of PrettyItem.
Constructor Details
#initialize(item) ⇒ PrettyItem
Returns a new instance of PrettyItem.
33 34 35 36 37 38 |
# File 'lib/pfrpg_readers/inventory_reader.rb', line 33 def initialize(item) @name = item.name @description = item.description @slot = item.slot @type = item.type end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
31 32 33 |
# File 'lib/pfrpg_readers/inventory_reader.rb', line 31 def description @description end |
#equipped ⇒ Object (readonly)
Returns the value of attribute equipped.
31 32 33 |
# File 'lib/pfrpg_readers/inventory_reader.rb', line 31 def equipped @equipped end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
31 32 33 |
# File 'lib/pfrpg_readers/inventory_reader.rb', line 31 def name @name end |
#slot ⇒ Object (readonly)
Returns the value of attribute slot.
31 32 33 |
# File 'lib/pfrpg_readers/inventory_reader.rb', line 31 def slot @slot end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
31 32 33 |
# File 'lib/pfrpg_readers/inventory_reader.rb', line 31 def type @type end |