lib/purecloud/models/automate_queue_member.rb in purecloud-0.35.1 vs lib/purecloud/models/automate_queue_member.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 AutomateQueueMember # The globally unique identifier for the object. @@ -114,14 +130,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]