Class: CampfireChat::Engineer

Inherits:
Object
  • Object
show all
Defined in:
lib/campfire_chat/engineer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Engineer

Returns a new instance of Engineer.



4
5
6
# File 'lib/campfire_chat/engineer.rb', line 4

def initialize(attributes={})
  @name = attributes[:name]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/campfire_chat/engineer.rb', line 3

def name
  @name
end