Class: Twilio::REST::Trusthub::V1::ComplianceInquiriesInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Trusthub::V1::ComplianceInquiriesInstance
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb
Instance Method Summary collapse
-
#context ⇒ ComplianceInquiriesContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#customer_id ⇒ String
The CustomerID matching the Customer Profile that should be resumed or resubmitted for editing.
-
#initialize(version, payload, customer_id: nil) ⇒ ComplianceInquiriesInstance
constructor
Initialize the ComplianceInquiriesInstance.
-
#inquiry_id ⇒ String
The unique ID used to start an embedded compliance registration session.
-
#inquiry_session_token ⇒ String
The session token used to start an embedded compliance registration session.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update(primary_profile_sid: nil) ⇒ ComplianceInquiriesInstance
Update the ComplianceInquiriesInstance.
-
#url ⇒ String
The URL of this resource.
Constructor Details
#initialize(version, payload, customer_id: nil) ⇒ ComplianceInquiriesInstance
Initialize the ComplianceInquiriesInstance
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 158 def initialize(version, payload , customer_id: nil) super(version) # Marshaled Properties @properties = { 'inquiry_id' => payload['inquiry_id'], 'inquiry_session_token' => payload['inquiry_session_token'], 'customer_id' => payload['customer_id'], 'url' => payload['url'], } # Context @instance_context = nil @params = { 'customer_id' => customer_id || @properties['customer_id'] , } end |
Instance Method Details
#context ⇒ ComplianceInquiriesContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
178 179 180 181 182 183 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 178 def context unless @instance_context @instance_context = ComplianceInquiriesContext.new(@version , @params['customer_id']) end @instance_context end |
#customer_id ⇒ String
199 200 201 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 199 def customer_id @properties['customer_id'] end |
#inquiry_id ⇒ String
187 188 189 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 187 def inquiry_id @properties['inquiry_id'] end |
#inquiry_session_token ⇒ String
193 194 195 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 193 def inquiry_session_token @properties['inquiry_session_token'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
231 232 233 234 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 231 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.ComplianceInquiriesInstance #{values}>" end |
#to_s ⇒ Object
Provide a user friendly representation
224 225 226 227 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 224 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.ComplianceInquiriesInstance #{values}>" end |
#update(primary_profile_sid: nil) ⇒ ComplianceInquiriesInstance
Update the ComplianceInquiriesInstance
213 214 215 216 217 218 219 220 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 213 def update( primary_profile_sid: nil ) context.update( primary_profile_sid: primary_profile_sid, ) end |
#url ⇒ String
205 206 207 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 205 def url @properties['url'] end |