Class: MobRotation::Mobster

Inherits:
Object
  • Object
show all
Defined in:
lib/mob_rotation/mobster.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/mob_rotation/mobster.rb', line 3

def email
  @email
end

#nameObject (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