Class: Twilio::REST::Trusthub::V1::ComplianceInquiriesContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Trusthub::V1::ComplianceInquiriesContext
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb
Instance Method Summary collapse
-
#initialize(version, customer_id) ⇒ ComplianceInquiriesContext
constructor
Initialize the ComplianceInquiriesContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update(primary_profile_sid: nil, theme_set_id: :unset) ⇒ ComplianceInquiriesInstance
Update the ComplianceInquiriesInstance.
Constructor Details
#initialize(version, customer_id) ⇒ ComplianceInquiriesContext
Initialize the ComplianceInquiriesContext
80 81 82 83 84 85 86 87 88 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 80 def initialize(version, customer_id) super(version) # Path Solution @solution = { customer_id: customer_id, } @uri = "/ComplianceInquiries/Customers/#{@solution[:customer_id]}/Initialize" end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
128 129 130 131 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 128 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Trusthub.V1.ComplianceInquiriesContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
121 122 123 124 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 121 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Trusthub.V1.ComplianceInquiriesContext #{context}>" end |
#update(primary_profile_sid: nil, theme_set_id: :unset) ⇒ ComplianceInquiriesInstance
Update the ComplianceInquiriesInstance
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 94 def update( primary_profile_sid: nil, theme_set_id: :unset ) data = Twilio::Values.of({ 'PrimaryProfileSid' => primary_profile_sid, 'ThemeSetId' => theme_set_id, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.update('POST', @uri, data: data, headers: headers) ComplianceInquiriesInstance.new( @version, payload, customer_id: @solution[:customer_id], ) end |