Class: GovTrack::Role

Inherits:
Base show all
Defined in:
lib/govtrack/role.rb

Instance Method Summary collapse

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