mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-29 00:01:18 -05:00
19 lines
468 B
Ruby
19 lines
468 B
Ruby
module Stripe
|
|
class EphemeralKey < APIResource
|
|
extend Stripe::APIOperations::Create
|
|
include Stripe::APIOperations::Delete
|
|
|
|
OBJECT_NAME = "ephemeral_key".freeze
|
|
|
|
def self.resource_url
|
|
"/v1/ephemeral_keys"
|
|
end
|
|
|
|
def self.create(params = {}, opts = {})
|
|
opts = Util.normalize_opts(opts)
|
|
raise ArgumentError, "stripe_version must be specified to create an ephemeral key" unless opts[:stripe_version]
|
|
super
|
|
end
|
|
end
|
|
end
|