Class: Lobbyliste::Person
Overview
Class to encapsulate a person.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The persons name (hopefully) stripped of all titles.
-
#original_name ⇒ String
readonly
The original name with titles as stated in the document.
-
#titles ⇒ Array
readonly
List of all titles (job, academic, positions).
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, titles, original_name) ⇒ Person
constructor
A new instance of Person.
- #to_json(*a) ⇒ Object
Constructor Details
#initialize(name, titles, original_name) ⇒ Person
Returns a new instance of Person.
14 15 16 17 18 |
# File 'lib/lobbyliste/person.rb', line 14 def initialize(name, titles, original_name) @name = name @titles = titles @original_name = original_name end |
Instance Attribute Details
#name ⇒ String (readonly)
Returns the persons name (hopefully) stripped of all titles.
6 7 8 |
# File 'lib/lobbyliste/person.rb', line 6 def name @name end |
#original_name ⇒ String (readonly)
Returns the original name with titles as stated in the document.
12 13 14 |
# File 'lib/lobbyliste/person.rb', line 12 def original_name @original_name end |
#titles ⇒ Array (readonly)
Returns list of all titles (job, academic, positions).
9 10 11 |
# File 'lib/lobbyliste/person.rb', line 9 def titles @titles end |