lib/twilio-ruby/rest/chat/v2/service/binding.rb in twilio-ruby-5.25.4 vs lib/twilio-ruby/rest/chat/v2/service/binding.rb in twilio-ruby-5.26.0
- old
+ new
@@ -14,12 +14,12 @@
class BindingList < ListResource
##
# Initialize the BindingList
# @param [Version] version Version that contains the resource
# @param [String] service_sid The SID of the
- # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
- # associated with.
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the Binding resource
+ # is associated with.
# @return [BindingList] BindingList
def initialize(version, service_sid: nil)
super(version)
# Path Solution
@@ -33,11 +33,11 @@
# memory before returning.
# @param [binding.BindingType] binding_type The push technology used by the
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
# notification
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
- # for more information.
+ # for more info.
# @param [String] identity The
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
# resources to read. See [access
# tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
# @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -62,11 +62,11 @@
# is reached.
# @param [binding.BindingType] binding_type The push technology used by the
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
# notification
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
- # for more information.
+ # for more info.
# @param [String] identity The
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
# resources to read. See [access
# tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
# @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -103,11 +103,11 @@
# Request is executed immediately.
# @param [binding.BindingType] binding_type The push technology used by the
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
# notification
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
- # for more information.
+ # for more info.
# @param [String] identity The
# [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
# resources to read. See [access
# tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
# @param [String] page_token PageToken provided by the API
@@ -182,14 +182,13 @@
class BindingContext < InstanceContext
##
# Initialize the BindingContext
# @param [Version] version Version that contains the resource
# @param [String] service_sid The SID of the
- # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the resource
- # from.
- # @param [String] sid The Twilio-provided string that uniquely identifies the
- # Binding resource to fetch.
+ # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Binding
+ # resource from.
+ # @param [String] sid The SID of the Binding resource to fetch.
# @return [BindingContext] BindingContext
def initialize(version, service_sid, sid)
super(version)
# Path Solution
@@ -212,11 +211,11 @@
BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], sid: @solution[:sid], )
end
##
# Deletes the BindingInstance
- # @return [Boolean] true if delete succeeds, true otherwise
+ # @return [Boolean] true if delete succeeds, false otherwise
def delete
@version.delete('delete', @uri)
end
##
@@ -238,14 +237,13 @@
##
# Initialize the BindingInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
# @param [String] service_sid The SID of the
- # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
- # associated with.
- # @param [String] sid The Twilio-provided string that uniquely identifies the
- # Binding resource to fetch.
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the Binding resource
+ # is associated with.
+ # @param [String] sid The SID of the Binding resource to fetch.
# @return [BindingInstance] BindingInstance
def initialize(version, payload, service_sid: nil, sid: nil)
super(version)
# Marshaled Properties
@@ -291,23 +289,23 @@
def account_sid
@properties['account_sid']
end
##
- # @return [String] The SID of the Service that the resource is associated with
+ # @return [String] The SID of the Service that the Binding resource is associated with
def service_sid
@properties['service_sid']
end
##
- # @return [Time] The RFC 2822 date and time in GMT when the resource was created
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
def date_created
@properties['date_created']
end
##
- # @return [Time] The RFC 2822 date and time in GMT when the resource was last updated
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
def date_updated
@properties['date_updated']
end
##
@@ -345,11 +343,11 @@
def url
@properties['url']
end
##
- # @return [String] The absolute URLs of the Users for the Binding
+ # @return [String] The absolute URLs of the Binding's User
def links
@properties['links']
end
##
@@ -359,10 +357,10 @@
context.fetch
end
##
# Deletes the BindingInstance
- # @return [Boolean] true if delete succeeds, true otherwise
+ # @return [Boolean] true if delete succeeds, false otherwise
def delete
context.delete
end
##
\ No newline at end of file