stripe-ruby/lib/stripe/ephemeral_key.rb
2017-09-27 21:28:25 +02:00

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