Class: MobRotation::Mobster
- Inherits:
-
Object
- Object
- MobRotation::Mobster
- Defined in:
- lib/mob_rotation/mobster.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, email = nil) ⇒ Mobster
constructor
A new instance of Mobster.
Constructor Details
#initialize(name, email = nil) ⇒ Mobster
Returns a new instance of Mobster.
5 6 7 8 |
# File 'lib/mob_rotation/mobster.rb', line 5 def initialize(name, email = nil) @name = name @email = email end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/mob_rotation/mobster.rb', line 3 def email @email end |
#name ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute name.
3 4 5 |
# File 'lib/mob_rotation/mobster.rb', line 3 def name @name end |