Class: GovTrack::Person
Instance Method Summary collapse
- #current_role ⇒ Object
-
#initialize(attributes = {}) ⇒ Person
constructor
A new instance of Person.
- #roles ⇒ Object
Methods inherited from Base
#==, #eql?, find, find_by_id, find_by_uri, method_missing
Constructor Details
#initialize(attributes = {}) ⇒ Person
Returns a new instance of Person.
4 5 6 7 |
# File 'lib/govtrack/person.rb', line 4 def initialize(attributes={}) super @birthday = Date.parse(@birthday) if @birthday end |