Class: Twilio::REST::Trusthub::V1::ComplianceRegistrationInquiriesContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Trusthub::V1::ComplianceRegistrationInquiriesContext
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb
Instance Method Summary collapse
-
#initialize(version, registration_id) ⇒ ComplianceRegistrationInquiriesContext
constructor
Initialize the ComplianceRegistrationInquiriesContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update(is_isv_embed: :unset, theme_set_id: :unset) ⇒ ComplianceRegistrationInquiriesInstance
Update the ComplianceRegistrationInquiriesInstance.
Constructor Details
#initialize(version, registration_id) ⇒ ComplianceRegistrationInquiriesContext
Initialize the ComplianceRegistrationInquiriesContext
188 189 190 191 192 193 194 195 196 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb', line 188 def initialize(version, registration_id) super(version) # Path Solution @solution = { registration_id: registration_id, } @uri = "/ComplianceInquiries/Registration/#{@solution[:registration_id]}/RegulatoryCompliance/GB/Initialize" end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
236 237 238 239 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb', line 236 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
229 230 231 232 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb', line 229 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesContext #{context}>" end |
#update(is_isv_embed: :unset, theme_set_id: :unset) ⇒ ComplianceRegistrationInquiriesInstance
Update the ComplianceRegistrationInquiriesInstance
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb', line 202 def update( is_isv_embed: :unset, theme_set_id: :unset ) data = Twilio::Values.of({ 'IsIsvEmbed' => , 'ThemeSetId' => theme_set_id, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.update('POST', @uri, data: data, headers: headers) ComplianceRegistrationInquiriesInstance.new( @version, payload, registration_id: @solution[:registration_id], ) end |