lib/buildium-ruby/models/rental_message.rb in buildium-ruby-2.1.0 vs lib/buildium-ruby/models/rental_message.rb in buildium-ruby-3.0.0
- old
+ new
@@ -260,11 +260,11 @@
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself
def build_from_hash(attributes)
- return nil unless attributes.is_a?(Hash)
+ return unless attributes.is_a?(Hash)
attributes = attributes.transform_keys(&:to_sym)
self.class.openapi_types.each_pair do |key, type|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
@@ -367,8 +367,7 @@
value.to_hash
else
value
end
end
-
end
end