class Lobbyliste::Person
Class to encapsulate a person.
Attributes
name[R]
@return [String] the persons name (hopefully) stripped of all titles
original_name[R]
@return [String] the original name with titles as stated in the document
titles[R]
@return [Array] list of all titles (job, academic, positions)
Public Class Methods
new(name, titles, original_name)
click to toggle source
# File lib/lobbyliste/person.rb, line 14 def initialize(name, titles, original_name) @name = name @titles = titles @original_name = original_name end
Public Instance Methods
==(other)
click to toggle source
# File lib/lobbyliste/person.rb, line 20 def ==(other) original_name==other.original_name end
to_json(*a)
click to toggle source
# File lib/lobbyliste/person.rb, line 24 def to_json(*a) { name: name, titles: titles }.to_json(*a) end