Class: Twilio::REST::Numbers::V1::PortingPortInList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Numbers::V1::PortingPortInList
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb
Defined Under Namespace
Classes: NumbersV1PortingAddress, NumbersV1PortingPortInCreate, NumbersV1PortingPortInCreatePhoneNumbers
Instance Method Summary collapse
-
#create(numbers_v1_porting_port_in_create: nil) ⇒ PortingPortInInstance
Create the PortingPortInInstance.
-
#initialize(version) ⇒ PortingPortInList
constructor
Initialize the PortingPortInList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ PortingPortInList
Initialize the PortingPortInList
114 115 116 117 118 119 120 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 114 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Porting/PortIn" end |
Instance Method Details
#create(numbers_v1_porting_port_in_create: nil) ⇒ PortingPortInInstance
Create the PortingPortInInstance
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 125 def create(numbers_v1_porting_port_in_create: nil ) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' payload = @version.create('POST', @uri, headers: headers, data: numbers_v1_porting_port_in_create.to_json) PortingPortInInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
145 146 147 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 145 def to_s '#<Twilio.Numbers.V1.PortingPortInList>' end |