class Twilio::REST::Api::V2010::AccountContext::CallList::FeedbackSummaryContext
Public Class Methods
new(version, account_sid, sid)
click to toggle source
Initialize the FeedbackSummaryContext
@param [Version] version Version
that contains the resource @param [String] account_sid The unique id of the
{Account}[https://www.twilio.com/docs/iam/api/account] responsible for this resource.
@param [String] sid A 34 character string that uniquely identifies this
resource.
@return [FeedbackSummaryContext] FeedbackSummaryContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb 105 def initialize(version, account_sid, sid) 106 super(version) 107 108 # Path Solution 109 @solution = {account_sid: account_sid, sid: sid, } 110 @uri = "/Accounts/#{@solution[:account_sid]}/Calls/FeedbackSummary/#{@solution[:sid]}.json" 111 end
Public Instance Methods
delete()
click to toggle source
Delete the FeedbackSummaryInstance
@return [Boolean] true if delete succeeds, false otherwise
# File lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb 130 def delete 131 @version.delete('DELETE', @uri) 132 end
fetch()
click to toggle source
Fetch the FeedbackSummaryInstance
@return [FeedbackSummaryInstance] Fetched FeedbackSummaryInstance
# File lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb 116 def fetch 117 payload = @version.fetch('GET', @uri) 118 119 FeedbackSummaryInstance.new( 120 @version, 121 payload, 122 account_sid: @solution[:account_sid], 123 sid: @solution[:sid], 124 ) 125 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb 143 def inspect 144 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 145 "#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>" 146 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb 136 def to_s 137 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 138 "#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>" 139 end