Sha256: 9ba573a1f3c8d4567524476151359f59dcb34b4b24f17c37edaa68d4236fe130

Contents?: true

Size: 599 Bytes

Versions: 65

Compression:

Stored size: 599 Bytes

Contents

require 'fog/ecloud/models/compute/operating_system_family'

module Fog
  module Compute
    class Ecloud
      class OperatingSystemFamilies < Fog::Ecloud::Collection

        identity :href

        model Fog::Compute::Ecloud::OperatingSystemFamily

        def all
          data = service.get_operating_system_families(href).body[:OperatingSystemFamily]
          load(data)
        end

        def get(uri)
          if data = service.get_operating_system(uri)
            new(data.body)
          end
        rescue Fog::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 6 rubygems

Version Path
fog-1.10.0 lib/fog/ecloud/models/compute/operating_system_families.rb
fog-1.9.0 lib/fog/ecloud/models/compute/operating_system_families.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/ecloud/models/compute/operating_system_families.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/ecloud/models/compute/operating_system_families.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/ecloud/models/compute/operating_system_families.rb