Class: ThingInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-doom.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



258
259
260
# File 'lib/ruby-doom.rb', line 258

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



258
259
260
# File 'lib/ruby-doom.rb', line 258

def name
  @name
end

#symbolObject (readonly)

Returns the value of attribute symbol.



258
259
260
# File 'lib/ruby-doom.rb', line 258

def symbol
  @symbol
end