lib/mock/twilio/schemas/api_2010.rb in mock-twilio-1.2.0 vs lib/mock/twilio/schemas/api_2010.rb in mock-twilio-1.3.0
- old
+ new
@@ -3,10 +3,11 @@
require_relative "../decorators/api_2010/messages"
require_relative "../decorators/api_2010/calls"
require_relative "../decorators/api_2010/conferences_participants_update"
require_relative "../decorators/api_2010/conferences_participants_create"
require_relative "../decorators/api_2010/addresses"
+require_relative "../decorators/api_2010/incoming_phone_numbers"
module Mock
module Twilio
module Schemas
class Api2010
@@ -15,10 +16,11 @@
messages: Mock::Twilio::Decorators::Api2010::Messages,
calls: Mock::Twilio::Decorators::Api2010::Calls,
conferences_participants_update: Mock::Twilio::Decorators::Api2010::ConferencesParticipantsUpdate,
conferences_participants_create: Mock::Twilio::Decorators::Api2010::ConferencesParticipantsCreate,
addresses: Mock::Twilio::Decorators::Api2010::Addresses,
+ incoming_phone_numbers: Mock::Twilio::Decorators::Api2010::IncomingPhoneNumbers,
}
PAGES_KEYS = [
"end",
"first_page_uri",
@@ -45,9 +47,11 @@
RESOURCES[:conferences_participants_update].decorate(body, request)
when %r{\/2010-04-01/Accounts/[A-Za-z0-9]+/Conferences/[A-Za-z0-9]+/Participants.json}
RESOURCES[:conferences_participants_create].decorate(body, request)
when %r{\/2010-04-01/Accounts/[A-Za-z0-9]+/Addresses.json}
RESOURCES[:addresses].decorate(body, request)
+ when %r{\/2010-04-01/Accounts/[A-Za-z0-9]+/IncomingPhoneNumbers/[A-Za-z0-9]+.json}
+ RESOURCES[:incoming_phone_numbers].decorate(body, request)
end
end
end
end
end