lib/mock/twilio/schemas/messaging_v1.rb in mock-twilio-0.1.0 vs lib/mock/twilio/schemas/messaging_v1.rb in mock-twilio-0.2.0
- old
+ new
@@ -3,10 +3,10 @@
module Mock
module Twilio
module Schemas
class MessagingV1
class << self
- def decorate(body)
+ def decorate(body, request)
# Params for twilio pagination, needed for twilio-ruby serializers and absolute paths
body["meta"]["key"] = "phone_numbers" if body["meta"]
body["meta"]["page_size"] = 20 if body["meta"]
body["meta"]["first_page_url"] = "https://messaging.twilio.com/v1/Services/MGFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF/PhoneNumbers?PageSize=20&Page=0" if body["meta"]
body["meta"]["previous_page_url"] = "https://messaging.twilio.com/v1/Services/MGFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF/PhoneNumbers?PageSize=20&Page=0" if body["meta"]