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