Class: VcrStripeWebhook::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/vcr_stripe_webhook/configuration.rb

Constant Summary collapse

DEFAULT_TIMEOUT_SEC =
5

Instance Attribute Summary collapse

Instance Attribute Details

#cassette_library_dirObject



13
14
15
16
# File 'lib/vcr_stripe_webhook/configuration.rb', line 13

def cassette_library_dir
  @cassette_library_dir ||=
    File.join(VCR.configuration.cassette_library_dir, "stripe_webhooks")
end

#stripe_api_keyObject



18
19
20
# File 'lib/vcr_stripe_webhook/configuration.rb', line 18

def stripe_api_key
  @stripe_api_key ||= Stripe.api_key
end

#timeoutObject



9
10
11
# File 'lib/vcr_stripe_webhook/configuration.rb', line 9

def timeout
  @timeout ||= DEFAULT_TIMEOUT_SEC
end