Sha256: 8595864906ab03c6ad356169b835451e4b9c7d3e2cee4e0b9533521f3727cd3c

Contents?: true

Size: 634 Bytes

Versions: 11

Compression:

Stored size: 634 Bytes

Contents

module VoteSmart
  
  class Committee < Common
    
    # Returns committee types for use in other methods
    def self.get_types
      request("Committee.getTypes")
    end
    
    def self.get_committees_by_type_state type_id = nil, state_id = 'NA'
      request("Committee.getCommitteesByTypeState", "typeId" => type_id, "stateId" => state_id)
    end
    
    def self.get_committee committee_id
      request("Committee.getCommittee", "committeeId" => committee_id)
    end
    
    def self.get_committee_members committee_id
      request("Committee.getCommitteeMembers", "committeeId" => committee_id)
    end
    
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
netroots-ruby-votesmart-0.2.0 lib/vote_smart/committee.rb
netroots-ruby-votesmart-0.2.1 lib/vote_smart/committee.rb
netroots-ruby-votesmart-0.2.2 lib/vote_smart/committee.rb
netroots-ruby-votesmart-0.2.3 lib/vote_smart/committee.rb
netroots-ruby-votesmart-0.2.4 lib/vote_smart/committee.rb
votesmart-0.4.1 lib/vote_smart/committee.rb
votesmart-0.4.0 lib/vote_smart/committee.rb
votesmart-0.3.3 lib/vote_smart/committee.rb
votesmart-0.3.2 lib/vote_smart/committee.rb
votesmart-0.3.1 lib/vote_smart/committee.rb
votesmart-0.3.0 lib/vote_smart/committee.rb