campaign_cash 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -0
- data/lib/campaign_cash/independent_expenditure.rb +3 -2
- data/lib/campaign_cash/version.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -12,6 +12,7 @@ Simple ruby wrapper for The New York Times Campaign Finance API[http://developer
|
|
12
12
|
|
13
13
|
== News
|
14
14
|
|
15
|
+
* Jan. 19, 2012: Version 2.0.6 released. Added transaction_id param to IndependentExpenditure objects.
|
15
16
|
* Jan. 19, 2012: Version 2.0.5 released. Bugfix to add amendment param to IndependentExpenditure objects.
|
16
17
|
* Jan. 18, 2012: Version 2.0.4 released. Bugfix to handle offsets better.
|
17
18
|
* Jan. 14, 2012: Version 2.0.3 released. Bugfix so that President.detail returns 1 object, not an array.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module CampaignCash
|
2
2
|
class IndependentExpenditure < Base
|
3
3
|
|
4
|
-
attr_reader :committee, :district, :state, :committee_name, :purpose, :candidate, :support_or_oppose, :date, :amount, :office, :amendment, :date_received, :payee, :fec_uri
|
4
|
+
attr_reader :committee, :district, :state, :committee_name, :purpose, :candidate, :support_or_oppose, :date, :amount, :office, :amendment, :date_received, :payee, :fec_uri, :transaction_id
|
5
5
|
|
6
6
|
def initialize(params={})
|
7
7
|
params.each_pair do |k,v|
|
@@ -23,7 +23,8 @@ module CampaignCash
|
|
23
23
|
:amount => params['amount'],
|
24
24
|
:fec_uri => params['fec_uri'],
|
25
25
|
:date_received => date_parser(params['date_received']),
|
26
|
-
:amendment => params['amendment']
|
26
|
+
:amendment => params['amendment'],
|
27
|
+
:transaction_id => params['transaction_id']
|
27
28
|
end
|
28
29
|
|
29
30
|
def self.latest(offset=nil)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: campaign_cash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 6
|
10
|
+
version: 2.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Derek Willis
|