Sha256: 6d948c1859cb474ac1b4fe32bde1114fa74f74c3cd3d7bfc32e5fdaf25df4b86
Contents?: true
Size: 659 Bytes
Versions: 7
Compression:
Stored size: 659 Bytes
Contents
module NYTimes module Congress class Position < Base attr_reader :member_id, :vote_position, :vote alias position vote_position VALUES = ['Yes', 'No', 'Not Voting', 'Present', 'Speaker'] def initialize(member_id, vote_position, vote = nil) @member_id = member_id @vote_position = vote_position @vote = vote end def legislator Legislator.find(member_id) end def to_s position end def for? position == 'Yes' end def against? position == 'No' end def not_voting? position == 'Not Voting' end end end end
Version data entries
7 entries across 7 versions & 2 rubygems