Class: TrooperMac

Inherits:
Object
  • Object
show all
Defined in:
lib/farva/trooper_mac.rb

Constant Summary collapse

QUOTE_LIBRARY =
[]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrooperMac

Returns a new instance of TrooperMac.



2
3
4
5
6
# File 'lib/farva/trooper_mac.rb', line 2

def initialize
  @name = "Trooper Mac Womack"
  @email = "[email protected]"
  @quotes = QUOTE_LIBRARY
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



7
8
9
# File 'lib/farva/trooper_mac.rb', line 7

def email
  @email
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/farva/trooper_mac.rb', line 7

def name
  @name
end

#quotesObject

Returns the value of attribute quotes.



7
8
9
# File 'lib/farva/trooper_mac.rb', line 7

def quotes
  @quotes
end