lib/twilio-ruby/rest/api/v2010/account/queue/member.rb in twilio-ruby-5.21.2 vs lib/twilio-ruby/rest/api/v2010/account/queue/member.rb in twilio-ruby-5.22.0
- old
+ new
@@ -17,12 +17,11 @@
# Initialize the MemberList
# @param [Version] version Version that contains the resource
# @param [String] account_sid The SID of the
# [Account](https://www.twilio.com/docs/api/rest/account) that created this Queue
# resource.
- # @param [String] queue_sid The unique string that that we created to identify
- # this Queue resource.
+ # @param [String] queue_sid The SID of the Queue the member is in.
# @return [MemberList] MemberList
def initialize(version, account_sid: nil, queue_sid: nil)
super(version)
# Path Solution
@@ -158,11 +157,12 @@
# Initialize the MemberContext
# @param [Version] version Version that contains the resource
# @param [String] account_sid The SID of the
# [Account](https://www.twilio.com/docs/api/rest/account) that created the Member
# resource(s) to fetch.
- # @param [String] queue_sid The Queue in which to find the members to fetch.
+ # @param [String] queue_sid The SID of the Queue in which to find the members to
+ # fetch.
# @param [String] call_sid The [Call](https://www.twilio.com/docs/api/voice/call)
# SID of the resource(s) to fetch.
# @return [MemberContext] MemberContext
def initialize(version, account_sid, queue_sid, call_sid)
super(version)
@@ -193,11 +193,11 @@
)
end
##
# Update the MemberInstance
- # @param [String] url The absolute URL of this Queue resource.
+ # @param [String] url The absolute URL of the Queue resource.
# @param [String] method How to pass the update request data. Can be `GET` or
# `POST` and the default is `POST`. `POST` sends the data as encoded form data and
# `GET` sends the data as query parameters.
# @return [MemberInstance] Updated MemberInstance
def update(url: nil, method: nil)
@@ -239,12 +239,11 @@
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
# @param [String] account_sid The SID of the
# [Account](https://www.twilio.com/docs/api/rest/account) that created this Queue
# resource.
- # @param [String] queue_sid The unique string that that we created to identify
- # this Queue resource.
+ # @param [String] queue_sid The SID of the Queue the member is in.
# @param [String] call_sid The [Call](https://www.twilio.com/docs/api/voice/call)
# SID of the resource(s) to fetch.
# @return [MemberInstance] MemberInstance
def initialize(version, payload, account_sid: nil, queue_sid: nil, call_sid: nil)
super(version)
@@ -254,10 +253,11 @@
'call_sid' => payload['call_sid'],
'date_enqueued' => Twilio.deserialize_rfc2822(payload['date_enqueued']),
'position' => payload['position'].to_i,
'uri' => payload['uri'],
'wait_time' => payload['wait_time'].to_i,
+ 'queue_sid' => payload['queue_sid'],
}
# Context
@instance_context = nil
@params = {
@@ -282,11 +282,11 @@
end
@instance_context
end
##
- # @return [String] The SID of the Call this resource is associated with
+ # @return [String] The SID of the Call the resource is associated with
def call_sid
@properties['call_sid']
end
##
@@ -300,11 +300,11 @@
def position
@properties['position']
end
##
- # @return [String] The URI of this resource, relative to `https://api.twilio.com`
+ # @return [String] The URI of the resource, relative to `https://api.twilio.com`
def uri
@properties['uri']
end
##
@@ -312,18 +312,24 @@
def wait_time
@properties['wait_time']
end
##
+ # @return [String] The SID of the Queue the member is in
+ def queue_sid
+ @properties['queue_sid']
+ end
+
+ ##
# Fetch a MemberInstance
# @return [MemberInstance] Fetched MemberInstance
def fetch
context.fetch
end
##
# Update the MemberInstance
- # @param [String] url The absolute URL of this Queue resource.
+ # @param [String] url The absolute URL of the Queue resource.
# @param [String] method How to pass the update request data. Can be `GET` or
# `POST` and the default is `POST`. `POST` sends the data as encoded form data and
# `GET` sends the data as query parameters.
# @return [MemberInstance] Updated MemberInstance
def update(url: nil, method: nil)
\ No newline at end of file