Class: Asveloper::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/asveloper/message.rb

Instance Method Summary collapse

Constructor Details

#initialize(type = 'manager') ⇒ Message

Returns a new instance of Message.



3
4
5
# File 'lib/asveloper/message.rb', line 3

def initialize(type = 'manager')
 	@type = type
end

Instance Method Details

#displayObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/asveloper/message.rb', line 7

def display
	case @type
	when 'manager'
'Welcome Manager!'
	when 'employee'
'Welcome Employeer!'
	else
'Warm welcome to you!'
  end
end