Class: Twilio::REST::Api::V2010::AccountContext::CallList::FeedbackSummaryContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Api::V2010::AccountContext::CallList::FeedbackSummaryContext
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb
Instance Method Summary collapse
-
#delete ⇒ Boolean
Delete the FeedbackSummaryInstance.
-
#fetch ⇒ FeedbackSummaryInstance
Fetch the FeedbackSummaryInstance.
-
#initialize(version, account_sid, sid) ⇒ FeedbackSummaryContext
constructor
Initialize the FeedbackSummaryContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, account_sid, sid) ⇒ FeedbackSummaryContext
Initialize the FeedbackSummaryContext
84 85 86 87 88 89 90 91 92 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 84 def initialize(version, account_sid, sid) super(version) # Path Solution @solution = { account_sid: account_sid, sid: sid, } @uri = "/Accounts/#{@solution[:account_sid]}/Calls/FeedbackSummary/#{@solution[:sid]}.json" end |
Instance Method Details
#delete ⇒ Boolean
Delete the FeedbackSummaryInstance
96 97 98 99 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 96 def delete @version.delete('DELETE', @uri) end |
#fetch ⇒ FeedbackSummaryInstance
Fetch the FeedbackSummaryInstance
104 105 106 107 108 109 110 111 112 113 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 104 def fetch payload = @version.fetch('GET', @uri) FeedbackSummaryInstance.new( @version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
125 126 127 128 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 125 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
118 119 120 121 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 118 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>" end |