Sha256: d0d7024d4508c714a538b625875350d9e6d5445bbf6bf6ad9e79a27f2d540b5b
Contents?: true
Size: 678 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.4.4 | lib/ledger_sync/ledgers/stripe/client.rb |