Class: TrooperMac
- Inherits:
-
Object
- Object
- TrooperMac
- Defined in:
- lib/farva/trooper_mac.rb
Constant Summary collapse
- QUOTE_LIBRARY =
[]
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#quotes ⇒ Object
Returns the value of attribute quotes.
Instance Method Summary collapse
-
#initialize ⇒ TrooperMac
constructor
A new instance of TrooperMac.
Constructor Details
#initialize ⇒ TrooperMac
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
#email ⇒ Object
Returns the value of attribute email.
7 8 9 |
# File 'lib/farva/trooper_mac.rb', line 7 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/farva/trooper_mac.rb', line 7 def name @name end |
#quotes ⇒ Object
Returns the value of attribute quotes.
7 8 9 |
# File 'lib/farva/trooper_mac.rb', line 7 def quotes @quotes end |