Class: Paystackapi::PaystackSubscription
- Inherits:
-
Object
- Object
- Paystackapi::PaystackSubscription
- Defined in:
- lib/paystackapi.rb
Class Method Summary collapse
- .create(body) ⇒ Object
- .disable ⇒ Object
- .enable ⇒ Object
- .list ⇒ Object
- .list_single(body) ⇒ Object
Class Method Details
.create(body) ⇒ Object
60 61 62 |
# File 'lib/paystackapi.rb', line 60 def self.create(body) Transaction.create_subscription(body) end |
.disable ⇒ Object
69 70 71 |
# File 'lib/paystackapi.rb', line 69 def self.disable Transaction.disable_subscription end |
.enable ⇒ Object
72 73 74 |
# File 'lib/paystackapi.rb', line 72 def self.enable Transaction.enable_subscription end |
.list ⇒ Object
63 64 65 |
# File 'lib/paystackapi.rb', line 63 def self.list Transaction.list_subscription end |
.list_single(body) ⇒ Object
66 67 68 |
# File 'lib/paystackapi.rb', line 66 def self.list_single(body) Transaction.list_single_subscription(body) end |