Class: Asveloper::Message
- Inherits:
-
Object
- Object
- Asveloper::Message
- Defined in:
- lib/asveloper/message.rb
Instance Method Summary collapse
- #display ⇒ Object
-
#initialize(type = 'manager') ⇒ Message
constructor
A new instance of Message.
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
#display ⇒ Object
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 |