Sha256: 5f484c7256afb80335132d4c1691cd1109f97b3c86e4939a6e039c3522ad0875
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 Bytes
Contents
module NYTimes module Congress class LegislatorVoteComparison < Base attr_reader :common_votes, :disagree_votes, :agree_percent, :disagree_percent, :first_member_id, :second_member_id include AttributeTransformation def initialize(result) @common_votes, @disagree_votes = integer_for(result['common_votes']), integer_for(result['disagree_votes']) @agree_percent, @disagree_percent = result['agree_percent'], result['disagree_percent'] @first_member_id, @second_member_id = result['first_member_id'], result['second_member_id'] end end end end
Version data entries
4 entries across 4 versions & 2 rubygems