lib/purecloud/models/line_base.rb in purecloud-0.35.1 vs lib/purecloud/models/line_base.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 LineBase # The globally unique identifier for the object. @@ -35,11 +51,11 @@ def self.swagger_types { :'id' => :'String', :'name' => :'String', :'line_meta_base' => :'UriReference', - :'properties' => :'Hash<String, Line_properties>', + :'properties' => :'Hash<String, Object>', :'self_uri' => :'String' } end @@ -126,14 +142,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]