Class: Mock::Twilio::Schemas::PhoneNumbersV2
- Inherits:
-
Object
- Object
- Mock::Twilio::Schemas::PhoneNumbersV2
- Defined in:
- lib/mock/twilio/schemas/phone_numbers_v2.rb
Class Method Summary collapse
Class Method Details
.for(body, request) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/mock/twilio/schemas/phone_numbers_v2.rb', line 8 def for(body, request) body["calling_country_code"] = '1' if body["calling_country_code"] body["country_code"] = 'US' if body["country_code"] body["valid"] = true if body["valid"] body["validation_errors"] = [] if body["validation_errors"] body["line_type_intelligence"] = { "carrier_name" => "Mock::Twilio - SMS/MMS-SVR", "type" => line_type(request) } body end |