Module: StripeMock::RequestHandlers::ExpressLoginLinks
- Included in:
- Instance
- Defined in:
- lib/stripe_mock/request_handlers/express_login_links.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
5 6 7 |
# File 'lib/stripe_mock/request_handlers/express_login_links.rb', line 5 def ExpressLoginLinks.included(klass) klass.add_handler 'post /v1/accounts/(.*)/login_links', :new_account_login_link end |
Instance Method Details
#new_account_login_link(route, method_url, params, headers) ⇒ Object
9 10 11 12 |
# File 'lib/stripe_mock/request_handlers/express_login_links.rb', line 9 def new_account_login_link(route, method_url, params, headers) route =~ method_url Data.mock_express_login_link(params) end |