lib/purecloud/models/endpoint.rb in purecloud-0.35.1 vs lib/purecloud/models/endpoint.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 Endpoint # The globally unique identifier for the object. @@ -98,11 +114,11 @@ :'created_by' => :'String', :'state' => :'String', :'modified_by_app' => :'String', :'created_by_app' => :'String', :'count' => :'Integer', - :'properties' => :'Hash<String, Line_properties>', + :'properties' => :'Hash<String, Object>', :'schema' => :'UriReference', :'enabled' => :'BOOLEAN', :'site' => :'UriReference', :'dids' => :'Array<String>', :'self_uri' => :'String' @@ -271,14 +287,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]