Class: Twilio::REST::Trusthub::V1::ComplianceInquiriesList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Trusthub::V1::ComplianceInquiriesList
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb
Instance Method Summary collapse
-
#create(primary_profile_sid: nil, notification_email: :unset, theme_set_id: :unset) ⇒ ComplianceInquiriesInstance
Create the ComplianceInquiriesInstance.
-
#initialize(version) ⇒ ComplianceInquiriesList
constructor
Initialize the ComplianceInquiriesList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ ComplianceInquiriesList
Initialize the ComplianceInquiriesList
26 27 28 29 30 31 32 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/ComplianceInquiries/Customers/Initialize" end |
Instance Method Details
#create(primary_profile_sid: nil, notification_email: :unset, theme_set_id: :unset) ⇒ ComplianceInquiriesInstance
Create the ComplianceInquiriesInstance
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 39 def create( primary_profile_sid: nil, notification_email: :unset, theme_set_id: :unset ) data = Twilio::Values.of({ 'PrimaryProfileSid' => primary_profile_sid, 'NotificationEmail' => notification_email, 'ThemeSetId' => theme_set_id, }) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.create('POST', @uri, data: data, headers: headers) ComplianceInquiriesInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
68 69 70 |
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 68 def to_s '#<Twilio.Trusthub.V1.ComplianceInquiriesList>' end |