Skip to content

Commit 9009ffb

Browse files
author
Juan Rossi
committed
Added Promotion resource with List and Get. Updated version to 0.0.4.
1 parent 1f39e88 commit 9009ffb

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,4 @@ These are the operations available for each resource:
7272
|Installments | x | | | | | |
7373
|Queue | x | x | x | | x | x |
7474
|Refunds | x | x | x | | | |
75+
|Promotions | x | | x | | | |

lib/mango/resources.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ class Installments < Resource
3434
public_class_method :list
3535
end
3636

37+
class Promotions < Resource
38+
public_class_method :retrieve, :list
39+
end
40+
3741
end

mango-ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |s|
44
s.name = "mango-ruby"
5-
s.version = "0.0.3"
5+
s.version = "0.0.4"
66
s.summary = "Ruby wrapper for Mango API"
77
s.description = "API to interact with Mango\nhttps://getmango.com/"
88
s.authors = ["Mango development team", "Joaquín Vicente"]

0 commit comments

Comments
 (0)