Class: Governator::Name
- Inherits:
-
Struct
- Object
- Struct
- Governator::Name
- Defined in:
- lib/governator/name.rb
Overview
Data structure for a governor’s parsed name
Instance Attribute Summary collapse
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#full_name ⇒ Object
Returns the value of attribute full_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#middle_name ⇒ Object
Returns the value of attribute middle_name.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
Instance Method Summary collapse
Instance Attribute Details
#first_name ⇒ Object
Returns the value of attribute first_name
5 6 7 |
# File 'lib/governator/name.rb', line 5 def first_name @first_name end |
#full_name ⇒ Object
Returns the value of attribute full_name
5 6 7 |
# File 'lib/governator/name.rb', line 5 def full_name @full_name end |
#last_name ⇒ Object
Returns the value of attribute last_name
5 6 7 |
# File 'lib/governator/name.rb', line 5 def last_name @last_name end |
#middle_name ⇒ Object
Returns the value of attribute middle_name
5 6 7 |
# File 'lib/governator/name.rb', line 5 def middle_name @middle_name end |
#nickname ⇒ Object
Returns the value of attribute nickname
5 6 7 |
# File 'lib/governator/name.rb', line 5 def nickname @nickname end |
#suffix ⇒ Object
Returns the value of attribute suffix
5 6 7 |
# File 'lib/governator/name.rb', line 5 def suffix @suffix end |
Instance Method Details
#to_s ⇒ Object
6 7 8 |
# File 'lib/governator/name.rb', line 6 def to_s full_name end |