Class: Twilio::REST::Numbers::V1::PortingPortInInstance

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ PortingPortInInstance

Initialize the PortingPortInInstance

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 PortingPortIn resource.

  • sid (String)

    The SID of the Call resource to fetch.



95
96
97
98
99
100
101
102
103
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 95

def initialize(version, payload )
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'port_in_request_sid' => payload['port_in_request_sid'],
        'url' => payload['url'],
    }
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



126
127
128
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 126

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

#port_in_request_sidString

Returns The SID of the Port In request. This is a unique identifier of the port in request.

Returns:

  • (String)

    The SID of the Port In request. This is a unique identifier of the port in request.



108
109
110
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 108

def port_in_request_sid
    @properties['port_in_request_sid']
end

#to_sObject

Provide a user friendly representation



120
121
122
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 120

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

#urlString

Returns:

  • (String)


114
115
116
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 114

def url
    @properties['url']
end