Module: StripeMock::RequestHandlers::EphemeralKey
- Included in:
- Instance
- Defined in:
- lib/stripe_mock/request_handlers/ephemeral_key.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 |
# File 'lib/stripe_mock/request_handlers/ephemeral_key.rb', line 4 def self.included(klass) klass.add_handler 'post /v1/ephemeral_keys', :create_ephemeral_key end |
Instance Method Details
#create_ephemeral_key(route, method_url, params, headers) ⇒ Object
8 9 10 |
# File 'lib/stripe_mock/request_handlers/ephemeral_key.rb', line 8 def create_ephemeral_key(route, method_url, params, headers) Data.mock_ephemeral_key(**params) end |