Module: LedgerSync::Adaptors::Stripe::Operation::Mixin::InstanceMethods
- Defined in:
- lib/ledger_sync/adaptors/stripe/operation.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/ledger_sync/adaptors/stripe/operation.rb', line 18 def perform adaptor.wrap_perform do super end rescue ::Stripe::StripeError => e case e.code when 'resource_missing' failure(e) else raise e end end |
#stripe_resource_type ⇒ Object
14 15 16 |
# File 'lib/ledger_sync/adaptors/stripe/operation.rb', line 14 def stripe_resource_type @stripe_resource_type ||= ledger_serializer.class.stripe_resource_type end |