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
Deletes the FeedbackSummaryInstance.
-
#fetch ⇒ FeedbackSummaryInstance
Fetch a 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
110 111 112 113 114 115 116 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 110 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
Deletes the FeedbackSummaryInstance
141 142 143 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 141 def delete @version.delete('delete', @uri) end |
#fetch ⇒ FeedbackSummaryInstance
Fetch a FeedbackSummaryInstance
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 121 def fetch params = Twilio::Values.of({}) payload = @version.fetch( 'GET', @uri, params, ) FeedbackSummaryInstance.new( @version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid], ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
154 155 156 157 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 154 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
147 148 149 150 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 147 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>" end |