Method: StripeMock::RequestHandlers::PromotionCodes.included
- Defined in:
- lib/stripe_mock/request_handlers/promotion_codes.rb
.included(klass) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/stripe_mock/request_handlers/promotion_codes.rb', line 5 def PromotionCodes.included(klass) klass.add_handler 'post /v1/promotion_codes', :new_promotion_code klass.add_handler 'post /v1/promotion_codes/([^/]*)', :update_promotion_code klass.add_handler 'get /v1/promotion_codes/([^/]*)', :get_promotion_code klass.add_handler 'get /v1/promotion_codes', :list_promotion_code end |