lib/purecloud/models/automate_queue.rb in purecloud-0.35.1 vs lib/purecloud/models/automate_queue.rb in purecloud-0.36.1
- old
+ new
@@ -1,5 +1,21 @@
+=begin
+PureCloud API
+
+PureCloud API
+
+OpenAPI spec version: v1
+Contact: chuck.pulfer@inin.com
+Generated by: https://github.com/swagger-api/swagger-codegen.git
+
+License: ININ
+http://www.inin.com
+
+Terms of Service: http://www.inin.com
+
+=end
+
require 'date'
module PureCloud
class AutomateQueue
# The globally unique identifier for the object.
@@ -11,11 +27,11 @@
attr_accessor :description
# The members for the queue object.
attr_accessor :members
- # The last time that the queue was updated. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
+ # The last time that the queue was updated. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :last_update_time
# The user who last performed an update.
attr_accessor :last_update_user
@@ -150,14 +166,17 @@
when :Integer
value.to_i
when :Float
value.to_f
when :BOOLEAN
- if value =~ /^(true|t|yes|y|1)$/i
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
true
else
false
end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
when /\AArray<(?<inner_type>.+)>\z/
inner_type = Regexp.last_match[:inner_type]
value.map { |v| _deserialize(inner_type, v) }
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
k_type = Regexp.last_match[:k_type]