lib/yao/resources/aggregates.rb in yao-0.18.0 vs lib/yao/resources/aggregates.rb in yao-0.19.0
- old
+ new
@@ -2,13 +2,12 @@
module Yao::Resources
class Aggregates < Base
friendly_attributes :availability_zone, :deleted, :hosts, :metadata, :name
- # @return [Date]
- def deleted_at
- Date.parse(self["deleted_at"]) if self["deleted_at"]
- end
+ map_attributes_to_time :created_at, :updated_at, :deleted_at
+ alias :created :created_at
+ alias :updated :updated_at
self.service = "compute"
self.resources_name = "aggregates"
self.resources_path = "os-aggregates"
end