lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb in twilio-ruby-5.17.0 vs lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb in twilio-ruby-5.18.0
- old
+ new
@@ -14,11 +14,13 @@
class CallContext < InstanceContext
class FeedbackList < ListResource
##
# Initialize the FeedbackList
# @param [Version] version Version that contains the resource
- # @param [String] account_sid The account_sid
+ # @param [String] account_sid The unique id of the
+ # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
+ # resource.
# @param [String] call_sid A 34-character string that uniquely identifies the Call
# resource.
# @return [FeedbackList] FeedbackList
def initialize(version, account_sid: nil, call_sid: nil)
super(version)
@@ -70,11 +72,13 @@
class FeedbackContext < InstanceContext
##
# Initialize the FeedbackContext
# @param [Version] version Version that contains the resource
- # @param [String] account_sid The account_sid
+ # @param [String] account_sid The unique id of the
+ # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
+ # resource.
# @param [String] call_sid The call sid that uniquely identifies the call
# @return [FeedbackContext] FeedbackContext
def initialize(version, account_sid, call_sid)
super(version)
@@ -84,15 +88,17 @@
end
##
# Retrieve a single page of FeedbackInstance records from the API.
# Request is executed immediately.
- # @param [String] quality_score An integer `1` to `5` quality score where `1`
- # represents very poor call quality and `5` represents a perfect call.
- # @param [feedback.Issues] issue One or more issues experienced during the call.
- # The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`,
- # `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
+ # @param [String] quality_score The call quality expressed as an integer from `1`
+ # to `5` where `1` represents very poor call quality and `5` represents a perfect
+ # call.
+ # @param [feedback.Issues] issue A list of one or more issues experienced during
+ # the call. Issues can be: `imperfect-audio`, `dropped-call`,
+ # `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`,
+ # `audio-latency`, or `one-way-audio`.
# @return [FeedbackInstance] Newly created FeedbackInstance
def create(quality_score: nil, issue: :unset)
data = Twilio::Values.of({
'QualityScore' => quality_score,
'Issue' => Twilio.serialize_list(issue) { |e| e },
@@ -132,12 +138,13 @@
)
end
##
# Update the FeedbackInstance
- # @param [String] quality_score An integer `1` to `5` quality score where `1`
- # represents very poor call quality and `5` represents a perfect call.
+ # @param [String] quality_score The call quality expressed as an integer from `1`
+ # to `5` where `1` represents very poor call quality and `5` represents a perfect
+ # call.
# @param [feedback.Issues] issue One or more issues experienced during the call.
# The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`,
# `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
# @return [FeedbackInstance] Updated FeedbackInstance
def update(quality_score: nil, issue: :unset)
@@ -171,11 +178,13 @@
class FeedbackInstance < InstanceResource
##
# Initialize the FeedbackInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
- # @param [String] account_sid The account_sid
+ # @param [String] account_sid The unique id of the
+ # [Account](https://www.twilio.com/docs/api/rest/account) responsible for this
+ # resource.
# @param [String] call_sid A 34-character string that uniquely identifies the Call
# resource.
# @return [FeedbackInstance] FeedbackInstance
def initialize(version, payload, account_sid: nil, call_sid: nil)
super(version)
@@ -205,29 +214,29 @@
end
@instance_context
end
##
- # @return [String] The account_sid
+ # @return [String] The unique sid that identifies this account
def account_sid
@properties['account_sid']
end
##
- # @return [Time] The date_created
+ # @return [Time] The date this resource was created
def date_created
@properties['date_created']
end
##
- # @return [Time] The date_updated
+ # @return [Time] The date this resource was last updated
def date_updated
@properties['date_updated']
end
##
- # @return [feedback.Issues] The issues
+ # @return [feedback.Issues] Issues experienced during the call
def issues
@properties['issues']
end
##
@@ -235,23 +244,25 @@
def quality_score
@properties['quality_score']
end
##
- # @return [String] The sid
+ # @return [String] A string that uniquely identifies this feedback resource
def sid
@properties['sid']
end
##
# Retrieve a single page of FeedbackInstance records from the API.
# Request is executed immediately.
- # @param [String] quality_score An integer `1` to `5` quality score where `1`
- # represents very poor call quality and `5` represents a perfect call.
- # @param [feedback.Issues] issue One or more issues experienced during the call.
- # The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`,
- # `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
+ # @param [String] quality_score The call quality expressed as an integer from `1`
+ # to `5` where `1` represents very poor call quality and `5` represents a perfect
+ # call.
+ # @param [feedback.Issues] issue A list of one or more issues experienced during
+ # the call. Issues can be: `imperfect-audio`, `dropped-call`,
+ # `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`,
+ # `audio-latency`, or `one-way-audio`.
# @return [FeedbackInstance] Newly created FeedbackInstance
def create(quality_score: nil, issue: :unset)
context.create(quality_score: quality_score, issue: issue, )
end
@@ -262,11 +273,12 @@
context.fetch
end
##
# Update the FeedbackInstance
- # @param [String] quality_score An integer `1` to `5` quality score where `1`
- # represents very poor call quality and `5` represents a perfect call.
+ # @param [String] quality_score The call quality expressed as an integer from `1`
+ # to `5` where `1` represents very poor call quality and `5` represents a perfect
+ # call.
# @param [feedback.Issues] issue One or more issues experienced during the call.
# The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`,
# `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
# @return [FeedbackInstance] Updated FeedbackInstance
def update(quality_score: nil, issue: :unset)
\ No newline at end of file