Class: Twilio::REST::Numbers::V1::PortingAllPortInInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ PortingAllPortInInstance

Initialize the PortingAllPortInInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this PortingAllPortIn resource.

  • sid (String)

    The SID of the Call resource to fetch.



299
300
301
302
303
304
305
306
307
308
309
310
311
312
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 299

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'port_in_request_sid' => payload['port_in_request_sid'],
        'port_in_request_status' => payload['port_in_request_status'],
        'status_last_updated_timestamp' => payload['status_last_updated_timestamp'],
        'phone_numbers_requested' => payload['phone_numbers_requested'] == nil ? payload['phone_numbers_requested'] : payload['phone_numbers_requested'].to_i,
        'phone_numbers_ported' => payload['phone_numbers_ported'] == nil ? payload['phone_numbers_ported'] : payload['phone_numbers_ported'].to_i,
        'suggested_action' => payload['suggested_action'],
    }
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



359
360
361
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 359

def inspect
    "<Twilio.Numbers.V1.PortingAllPortInInstance>"
end

#phone_numbers_portedString

Returns Amount of phone numbers ported.

Returns:

  • (String)

    Amount of phone numbers ported



341
342
343
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 341

def phone_numbers_ported
    @properties['phone_numbers_ported']
end

#phone_numbers_requestedString

Returns Amount of phone numbers requested.

Returns:

  • (String)

    Amount of phone numbers requested



335
336
337
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 335

def phone_numbers_requested
    @properties['phone_numbers_requested']
end

#port_in_request_sidString

Returns The SID of the Port-in request.

Returns:

  • (String)

    The SID of the Port-in request



317
318
319
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 317

def port_in_request_sid
    @properties['port_in_request_sid']
end

#port_in_request_statusString

Returns Status of the Port In Request.

Returns:

  • (String)

    Status of the Port In Request



323
324
325
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 323

def port_in_request_status
    @properties['port_in_request_status']
end

#status_last_updated_timestampString

Returns The last updated timestamp of the request.

Returns:

  • (String)

    The last updated timestamp of the request



329
330
331
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 329

def status_last_updated_timestamp
    @properties['status_last_updated_timestamp']
end

#suggested_actionString

Returns Suggested action on this ticket.

Returns:

  • (String)

    Suggested action on this ticket



347
348
349
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 347

def suggested_action
    @properties['suggested_action']
end

#to_sObject

Provide a user friendly representation



353
354
355
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 353

def to_s
    "<Twilio.Numbers.V1.PortingAllPortInInstance>"
end