Class: PfrpgCore::EquipmentTotaler
- Inherits:
-
Object
- Object
- PfrpgCore::EquipmentTotaler
- Defined in:
- lib/pfrpg_core/equipment_totaler.rb
Instance Attribute Summary collapse
-
#entity ⇒ Object
readonly
Returns the value of attribute entity.
-
#levels ⇒ Object
readonly
Returns the value of attribute levels.
Instance Method Summary collapse
-
#initialize(entity) ⇒ EquipmentTotaler
constructor
A new instance of EquipmentTotaler.
- #total ⇒ Object
Constructor Details
#initialize(entity) ⇒ EquipmentTotaler
Returns a new instance of EquipmentTotaler.
4 5 6 7 |
# File 'lib/pfrpg_core/equipment_totaler.rb', line 4 def initialize(entity) @entity = entity @levels = PfrpgCore::LevelParser.new(entity.level) end |
Instance Attribute Details
#entity ⇒ Object (readonly)
Returns the value of attribute entity.
3 4 5 |
# File 'lib/pfrpg_core/equipment_totaler.rb', line 3 def entity @entity end |
#levels ⇒ Object (readonly)
Returns the value of attribute levels.
3 4 5 |
# File 'lib/pfrpg_core/equipment_totaler.rb', line 3 def levels @levels end |
Instance Method Details
#total ⇒ Object
9 10 11 |
# File 'lib/pfrpg_core/equipment_totaler.rb', line 9 def total return 1000 end |