Class: ThingInfo
- Inherits:
-
Object
- Object
- ThingInfo
- Defined in:
- lib/ruby-doom.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(id, name, symbol) ⇒ ThingInfo
constructor
A new instance of ThingInfo.
Constructor Details
#initialize(id, name, symbol) ⇒ ThingInfo
Returns a new instance of ThingInfo.
259 260 261 |
# File 'lib/ruby-doom.rb', line 259 def initialize(id,name,symbol) @id, @name, @symbol = id,name,symbol end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
258 259 260 |
# File 'lib/ruby-doom.rb', line 258 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
258 259 260 |
# File 'lib/ruby-doom.rb', line 258 def name @name end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
258 259 260 |
# File 'lib/ruby-doom.rb', line 258 def symbol @symbol end |