Sha256: b09af3fc57fefb9a7ea21531c8b4f7ef6e94f8241326efae22f7854dc09fd0bb
Contents?: true
Size: 499 Bytes
Versions: 65
Compression:
Stored size: 499 Bytes
Contents
require 'fog/ecloud/models/compute/layout' module Fog module Compute class Ecloud class Layouts < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::Layout def all data = service.get_layouts(href).body load(data) end def get(uri) if data = service.get_layout(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