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.



203
204
205
206
207
208
209
210
211
212
213
214
215
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 203

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



262
263
264
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 262

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

#phone_numbers_portedString

Returns Amount of phone numbers ported.

Returns:

  • (String)

    Amount of phone numbers ported



244
245
246
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 244

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



238
239
240
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 238

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



220
221
222
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 220

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



226
227
228
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 226

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



232
233
234
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 232

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



250
251
252
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 250

def suggested_action
    @properties['suggested_action']
end

#to_sObject

Provide a user friendly representation



256
257
258
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 256

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