Class: Twilio::REST::Api::V2010::AccountContext::CallList::FeedbackSummaryContext

Inherits:
InstanceContext
  • Object
show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, account_sid, sid) ⇒ FeedbackSummaryContext

Initialize the FeedbackSummaryContext

Parameters:

  • version (Version)

    Version that contains the resource

  • account_sid (String)

    The unique id of the Account responsible for this resource.

  • sid (String)

    A 34 character string that uniquely identifies this resource.


105
106
107
108
109
110
111
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 105

def initialize(version, , sid)
  super(version)

  # Path Solution
  @solution = {account_sid: , sid: sid, }
  @uri = "/Accounts/#{@solution[:account_sid]}/Calls/FeedbackSummary/#{@solution[:sid]}.json"
end

Instance Method Details

#deleteBoolean

Delete the FeedbackSummaryInstance

Returns:

  • (Boolean)

    true if delete succeeds, false otherwise


130
131
132
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 130

def delete
   @version.delete('DELETE', @uri)
end

#fetchFeedbackSummaryInstance

Fetch the FeedbackSummaryInstance

Returns:


116
117
118
119
120
121
122
123
124
125
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 116

def fetch
  payload = @version.fetch('GET', @uri)

  FeedbackSummaryInstance.new(
      @version,
      payload,
      account_sid: @solution[:account_sid],
      sid: @solution[:sid],
  )
end

#inspectObject

Provide a detailed, user friendly representation


143
144
145
146
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 143

def inspect
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
  "#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>"
end

#to_sObject

Provide a user friendly representation


136
137
138
139
# File 'lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb', line 136

def to_s
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
  "#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>"
end