Sha256: 34cd928d7c1d20ad3b6b68f602bbb6ab1b04bc9f92d29164e4a061a1b9e2ee3d
Contents?: true
Size: 503 Bytes
Versions: 6
Compression:
Stored size: 503 Bytes
Contents
require File.expand_path("../layout", __FILE__) 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
6 entries across 6 versions & 2 rubygems