Class: Billimatic::UrlHelpers
- Inherits:
-
Object
- Object
- Billimatic::UrlHelpers
- Includes:
- Singleton
- Defined in:
- lib/billimatic/url_helpers.rb
Instance Method Summary collapse
- #change_plan_url(token:, plan_id:) ⇒ Object
- #checkout_url(token:) ⇒ Object
- #subscription_dashboard_url(token:) ⇒ Object
Instance Method Details
#change_plan_url(token:, plan_id:) ⇒ Object
13 14 15 |
# File 'lib/billimatic/url_helpers.rb', line 13 def change_plan_url(token:, plan_id:) "#{Billimatic.configuration.host}/subscriptions/#{token}/change_plan/#{plan_id}" end |
#checkout_url(token:) ⇒ Object
5 6 7 |
# File 'lib/billimatic/url_helpers.rb', line 5 def checkout_url(token:) "#{Billimatic.configuration.host}/subscriptions/checkout/#{token}" end |
#subscription_dashboard_url(token:) ⇒ Object
9 10 11 |
# File 'lib/billimatic/url_helpers.rb', line 9 def subscription_dashboard_url(token:) "#{Billimatic.configuration.host}/subscriptions/#{token}/dashboard" end |