Sha256: eaa4c045f13f1bea64136c8912639952648f7b49e137d61c49dbd6ca71da1b32

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Stripe
    class DashboardURLHelper < LedgerSync::Ledgers::DashboardURLHelper
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ledger_sync-stripe-0.1.0 lib/ledger_sync/stripe/dashboard_url_helper.rb