Class: OpenSecrets::Organization
Overview
committee
Instance Method Summary collapse
-
#get_orgs(options = {}) ⇒ Object
Look up an organization by name.
-
#org_summary(options = {}) ⇒ Object
Provides summary fundraising information for the specified organization id.
Methods inherited from Base
Constructor Details
This class inherits a constructor from OpenSecrets::Base
Instance Method Details
#get_orgs(options = {}) ⇒ Object
Look up an organization by name.
156 157 158 159 160 |
# File 'lib/opensecrets.rb', line 156 def get_orgs( = {}) raise ArgumentError, 'You must provide a :org option' if [:org].nil? || [:org].empty? .merge!({:method => 'getOrgs'}) self.class.get("/", :query => ) end |
#org_summary(options = {}) ⇒ Object
Provides summary fundraising information for the specified organization id.
168 169 170 171 172 |
# File 'lib/opensecrets.rb', line 168 def org_summary( = {}) raise ArgumentError, 'You must provide a :id option' if [:id].nil? || [:id].empty? .merge!({:method => 'orgSummary'}) self.class.get("/", :query => ) end |