lib/fastly/models/event_attributes.rb in fastly-5.3.1 vs lib/fastly/models/event_attributes.rb in fastly-6.0.0
- old
+ new
@@ -89,11 +89,11 @@
:'created_at' => :'Time',
:'customer_id' => :'String',
:'description' => :'String',
:'event_type' => :'String',
:'ip' => :'String',
- :'metadata' => :'Object',
+ :'metadata' => :'Hash<String, Object>',
:'service_id' => :'String',
:'user_id' => :'String',
:'token_id' => :'String'
}
end
@@ -143,10 +143,12 @@
if attributes.key?(:'ip')
self.ip = attributes[:'ip']
end
if attributes.key?(:'metadata')
- self.metadata = attributes[:'metadata']
+ if (value = attributes[:'metadata']).is_a?(Hash)
+ self.metadata = value
+ end
end
if attributes.key?(:'service_id')
self.service_id = attributes[:'service_id']
end