Class: Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ ComplianceTollfreeInquiriesInstance

Initialize the ComplianceTollfreeInquiriesInstance

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

  • sid (String)

    The SID of the Call resource to fetch.



167
168
169
170
171
172
173
174
175
176
177
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 167

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

Instance Method Details

#inquiry_idString

Returns The unique ID used to start an embedded compliance registration session.

Returns:

  • (String)

    The unique ID used to start an embedded compliance registration session.



182
183
184
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 182

def inquiry_id
    @properties['inquiry_id']
end

#inquiry_session_tokenString

Returns The session token used to start an embedded compliance registration session.

Returns:

  • (String)

    The session token used to start an embedded compliance registration session.



188
189
190
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 188

def inquiry_session_token
    @properties['inquiry_session_token']
end

#inspectObject

Provide a detailed, user friendly representation



212
213
214
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 212

def inspect
    "<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
end

#registration_idString

Returns The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing.

Returns:

  • (String)

    The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing.



194
195
196
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 194

def registration_id
    @properties['registration_id']
end

#to_sObject

Provide a user friendly representation



206
207
208
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 206

def to_s
    "<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
end

#urlString

Returns The URL of this resource.

Returns:

  • (String)

    The URL of this resource.



200
201
202
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb', line 200

def url
    @properties['url']
end