Sha256: fb2c8282ec985f38dfb205d8ba945fde1fc2657f672816b0296203243d88c04b

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

require 'date'

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

    self.service        = "compute"
    self.resources_name = "aggregates"
    self.resources_path = "os-aggregates"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yao-0.18.0 lib/yao/resources/aggregates.rb
yao-0.17.0 lib/yao/resources/aggregates.rb
yao-0.16.0 lib/yao/resources/aggregates.rb
yao-0.15.0 lib/yao/resources/aggregates.rb
yao-0.14.0 lib/yao/resources/aggregates.rb