Class: Governator::Name

Inherits:
Struct
  • Object
show all
Defined in:
lib/governator/name.rb

Overview

Data structure for a governor’s parsed name

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name

Returns:

  • (Object)

    the current value of first_name



5
6
7
# File 'lib/governator/name.rb', line 5

def first_name
  @first_name
end

#full_nameObject

Returns the value of attribute full_name

Returns:

  • (Object)

    the current value of full_name



5
6
7
# File 'lib/governator/name.rb', line 5

def full_name
  @full_name
end

#last_nameObject

Returns the value of attribute last_name

Returns:

  • (Object)

    the current value of last_name



5
6
7
# File 'lib/governator/name.rb', line 5

def last_name
  @last_name
end

#middle_nameObject

Returns the value of attribute middle_name

Returns:

  • (Object)

    the current value of middle_name



5
6
7
# File 'lib/governator/name.rb', line 5

def middle_name
  @middle_name
end

#nicknameObject

Returns the value of attribute nickname

Returns:

  • (Object)

    the current value of nickname



5
6
7
# File 'lib/governator/name.rb', line 5

def nickname
  @nickname
end

#suffixObject

Returns the value of attribute suffix

Returns:

  • (Object)

    the current value of suffix



5
6
7
# File 'lib/governator/name.rb', line 5

def suffix
  @suffix
end

Instance Method Details

#to_sObject



6
7
8
# File 'lib/governator/name.rb', line 6

def to_s
  full_name
end