Sha256: 3252df72aabff7cf9b37611c153028e7bcbd14f906133a8f5117feca638a902b

Contents?: true

Size: 358 Bytes

Versions: 27

Compression:

Stored size: 358 Bytes

Contents

require 'date'

module Yao::Resources
  class Aggregates < Base
    friendly_attributes :availability_zone, :deleted, :hosts, :metadata, :name

    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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
yao-0.5.0 lib/yao/resources/aggregates.rb
yao-0.4.3 lib/yao/resources/aggregates.rb
yao-0.4.2 lib/yao/resources/aggregates.rb
yao-0.4.1 lib/yao/resources/aggregates.rb
yao-0.4.0 lib/yao/resources/aggregates.rb
yao-0.3.8 lib/yao/resources/aggregates.rb
yao-0.3.7 lib/yao/resources/aggregates.rb