Sha256: 622496ae6d52dd19b8e750083d72c4e2d5629d1a05750db1f2345bb7ddf3a947

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

module LedgerSync
  module Adaptors
    module Stripe
      class DashboardURLHelper < LedgerSync::Adaptors::DashboardURLHelper
        def resource_path
          @resource_path = case resource
          when LedgerSync::Customer
            "/customers/#{resource.ledger_id}"
          else
            raise Error::AdaptorError::UnknownURLFormat.new(
              adaptor: self,
              resource: resource
            )
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ledger_sync-1.3.5 lib/ledger_sync/adaptors/stripe/dashboard_url_helper.rb