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
Instance Method Summary collapse
-
#create(body: :unset) ⇒ 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
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Porting/PortIn" end |
Instance Method Details
#create(body: :unset) ⇒ PortingPortInInstance
Create the PortingPortInInstance
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 37 def create(body: :unset ) headers = Twilio::Values.of({"Content-Type"=> "application/json"}) payload = @version.create('POST', @uri, data: body.to_json, headers: headers) PortingPortInInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
52 53 54 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 52 def to_s '#<Twilio.Numbers.V1.PortingPortInList>' end |