Class: Radventure::Furniture
- Inherits:
-
Object
- Object
- Radventure::Furniture
- Defined in:
- lib/radventure/furniture.rb
Overview
Represents an ingame furniture item
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(name, view, desc) ⇒ Furniture
constructor
Furniture constructor.
Constructor Details
#initialize(name, view, desc) ⇒ Furniture
Furniture constructor
14 15 16 17 18 |
# File 'lib/radventure/furniture.rb', line 14 def initialize(name, view, desc) @name = name.strip @view = view.strip @desc = desc.strip end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
6 7 8 |
# File 'lib/radventure/furniture.rb', line 6 def desc @desc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/radventure/furniture.rb', line 6 def name @name end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
6 7 8 |
# File 'lib/radventure/furniture.rb', line 6 def view @view end |