Sha256: ce1b29e8696af2fe33ce47e82f78c268efb82266c695baafd2a077371e81117f
Contents?: true
Size: 678 Bytes
Versions: 3
Compression:
Stored size: 678 Bytes
Contents
# frozen_string_literal: true require 'oauth2' module LedgerSync module Ledgers module Stripe class Client < Ledgers::Client attr_reader :api_key def initialize( api_key: ) @api_key = api_key end def url_for(resource:) DashboardURLHelper.new( resource: resource, base_url: "https://dashboard.stripe.com" ).url end def wrap_perform ::Stripe.api_key = api_key yield ensure ::Stripe.api_key = nil end def self.ledger_attributes_to_save [] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.4.2 | lib/ledger_sync/ledgers/stripe/client.rb |
ledger_sync-1.4.1 | lib/ledger_sync/ledgers/stripe/client.rb |
ledger_sync-1.4.0 | lib/ledger_sync/ledgers/stripe/client.rb |