Sha256: 86565de99869907c6add0c6838b4500ba74bf91f8c48c57067014c56185bf45c

Contents?: true

Size: 506 Bytes

Versions: 11

Compression:

Stored size: 506 Bytes

Contents

module VoteSmart
  
  class Leadership < Common
    
    # Returns a list of leadership positions
    def self.get_positions state_id = "NA", office_id = nil
      request("Leadership.getPositions", "stateId" => state_id, "officeId" => office_id)
    end
    
    # Returns a list of candidates in specific leadership positions
    def self.get_officials leadership_id, state_id = "NA"
      request("Leadership.getOfficials", "leadershipId" => leadership_id, "stateId" => state_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/leadership.rb
netroots-ruby-votesmart-0.2.1 lib/vote_smart/leadership.rb
netroots-ruby-votesmart-0.2.2 lib/vote_smart/leadership.rb
netroots-ruby-votesmart-0.2.3 lib/vote_smart/leadership.rb
netroots-ruby-votesmart-0.2.4 lib/vote_smart/leadership.rb
votesmart-0.4.1 lib/vote_smart/leadership.rb
votesmart-0.4.0 lib/vote_smart/leadership.rb
votesmart-0.3.3 lib/vote_smart/leadership.rb
votesmart-0.3.2 lib/vote_smart/leadership.rb
votesmart-0.3.1 lib/vote_smart/leadership.rb
votesmart-0.3.0 lib/vote_smart/leadership.rb