Sha256: 6088e52c69053e2473719d2d275e96dad4fafba35b03f006040f12a5bb2718f4
Contents?: true
Size: 694 Bytes
Versions: 1
Compression:
Stored size: 694 Bytes
Contents
# frozen_string_literal: true require 'oauth2' module LedgerSync module Adaptors module Stripe class Adaptor < LedgerSync::Adaptors::Adaptor 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.3.5 | lib/ledger_sync/adaptors/stripe/adaptor.rb |