Class: LedgerSync::Ledgers::Stripe::DashboardURLHelper
- Inherits:
-
DashboardURLHelper
- Object
- DashboardURLHelper
- LedgerSync::Ledgers::Stripe::DashboardURLHelper
- Defined in:
- lib/ledger_sync/ledgers/stripe/dashboard_url_helper.rb
Instance Attribute Summary
Attributes inherited from DashboardURLHelper
Instance Method Summary collapse
Methods inherited from DashboardURLHelper
Constructor Details
This class inherits a constructor from LedgerSync::Ledgers::DashboardURLHelper
Instance Method Details
#resource_path ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ledger_sync/ledgers/stripe/dashboard_url_helper.rb', line 7 def resource_path @resource_path = case resource when Stripe::Customer "/customers/#{resource.ledger_id}" else raise Error::LedgerError::UnknownURLFormat.new( client: self, resource: resource ) end end |