fosbury 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fosbury/client.rb +8 -0
- metadata +2 -2
data/lib/fosbury/client.rb
CHANGED
@@ -92,6 +92,14 @@ module Fosbury
|
|
92
92
|
put "#{@endpoint}passes/#{pass_id}/push", options
|
93
93
|
end
|
94
94
|
|
95
|
+
def archive_pass pass_id
|
96
|
+
post "#{@endpoint}passes/#{pass_id}/archive"
|
97
|
+
end
|
98
|
+
|
99
|
+
def redeem_pass pass_id
|
100
|
+
post "#{@endpoint}passes/#{pass_id}/redeem"
|
101
|
+
end
|
102
|
+
|
95
103
|
def distribute_campaign campaign_id
|
96
104
|
raise "Please provide a campaign_id" if campaign_id.nil?
|
97
105
|
post "#{@endpoint}campaigns/#{campaign_id}/distribute"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fosbury
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|