Class: Twilio::REST::Messaging::V1::RequestManagedCertContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Messaging::V1::RequestManagedCertContext
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb
Instance Method Summary collapse
-
#initialize(version, domain_sid) ⇒ RequestManagedCertContext
constructor
Initialize the RequestManagedCertContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update ⇒ RequestManagedCertInstance
Update the RequestManagedCertInstance.
Constructor Details
#initialize(version, domain_sid) ⇒ RequestManagedCertContext
Initialize the RequestManagedCertContext
49 50 51 52 53 54 55 56 57 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 49 def initialize(version, domain_sid) super(version) # Path Solution @solution = { domain_sid: domain_sid, } @uri = "/LinkShortening/Domains/#{@solution[:domain_sid]}/RequestManagedCert" end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
87 88 89 90 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 87 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Messaging.V1.RequestManagedCertContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
80 81 82 83 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 80 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Messaging.V1.RequestManagedCertContext #{context}>" end |
#update ⇒ RequestManagedCertInstance
Update the RequestManagedCertInstance
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb', line 61 def update headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) payload = @version.update('POST', @uri, headers: headers) RequestManagedCertInstance.new( @version, payload, domain_sid: @solution[:domain_sid], ) end |