Module: StripeMock::RequestHandlers::AccountLinks
- Included in:
- Instance
- Defined in:
- lib/stripe_mock/request_handlers/account_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/account_links.rb', line 5 def AccountLinks.included(klass) klass.add_handler 'post /v1/account_links', :new_account_link end |
Instance Method Details
#new_account_link(route, method_url, params, headers) ⇒ Object
9 10 11 12 |
# File 'lib/stripe_mock/request_handlers/account_links.rb', line 9 def new_account_link(route, method_url, params, headers) route =~ method_url Data.mock_account_link(params) end |