lib/fastly/models/content.rb in fastly-5.3.1 vs lib/fastly/models/content.rb in fastly-6.0.0
- old
+ new
@@ -44,12 +44,12 @@
# Attribute type mapping.
def self.fastly_types
{
:'hash' => :'String',
- :'request' => :'Object',
- :'response' => :'Object',
+ :'request' => :'Hash<String, Object>',
+ :'response' => :'Hash<String, Object>',
:'response_time' => :'Float',
:'server' => :'String',
:'pop' => :'String'
}
end
@@ -78,14 +78,18 @@
if attributes.key?(:'hash')
self.hash = attributes[:'hash']
end
if attributes.key?(:'request')
- self.request = attributes[:'request']
+ if (value = attributes[:'request']).is_a?(Hash)
+ self.request = value
+ end
end
if attributes.key?(:'response')
- self.response = attributes[:'response']
+ if (value = attributes[:'response']).is_a?(Hash)
+ self.response = value
+ end
end
if attributes.key?(:'response_time')
self.response_time = attributes[:'response_time']
end