Class: Mock::Bandwidth::Schemas::MessagingV2
- Inherits:
-
Object
- Object
- Mock::Bandwidth::Schemas::MessagingV2
- Defined in:
- lib/mock/bandwidth/schemas/messaging_v2.rb
Constant Summary collapse
- RESOURCES =
{ create_message: Mock::Bandwidth::Decorators::MessagingV2::MessageCreate, }
Class Method Summary collapse
Class Method Details
.for(body, request) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/mock/bandwidth/schemas/messaging_v2.rb', line 13 def for(body, request) url = request.url.path case url when %r{\/api\/v2\/users\/\d+\/messages} return RESOURCES[:create_message].decorate(body, request) if request.method == :post end end |