Class: OpenSecrets::Committee
Overview
candidate
Instance Method Summary collapse
-
#by_industry(options = {}) ⇒ Object
Provides summary fundraising information for a specific committee, industry and Congress number.
Methods inherited from Base
Constructor Details
This class inherits a constructor from OpenSecrets::Base
Instance Method Details
#by_industry(options = {}) ⇒ Object
Provides summary fundraising information for a specific committee, industry and Congress number.
See : www.opensecrets.org/api/?method=congCmteIndus&output=doc
138 139 140 141 142 143 144 |
# File 'lib/opensecrets.rb', line 138 def by_industry( = {}) raise ArgumentError, 'You must provide a :cmte option' if [:cmte].nil? || [:cmte].empty? raise ArgumentError, 'You must provide a :congno option' if [:congno].nil? || [:congno].empty? raise ArgumentError, 'You must provide a :indus option' if [:indus].nil? || [:indus].empty? .merge!({:method => 'congCmteIndus'}) self.class.get("/", :query => ) end |