require 'date' module Yao::Resources class Aggregates < Base friendly_attributes :availability_zone, :deleted, :hosts, :metadata, :name def created_at Date.parse(self["created_at"]) end def updated_at Date.parse(self["updated_at"]) if self["updated_at"] end def deleted_at Date.parse(self["deleted_at"]) if self["deleted_at"] end self.service = "compute" self.resources_name = "aggregates" self.resources_path = "os-aggregates" end end