Sha256: 3e702d39c53f1a13aef0833087713f8ac43def6e7c9a3e0954330a54d24c3583
Contents?: true
Size: 564 Bytes
Versions: 17
Compression:
Stored size: 564 Bytes
Contents
require 'fog/ecloud/models/compute/physical_device' module Fog module Compute class Ecloud class PhysicalDevices < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::PhysicalDevice def all data = service.get_physical_devices(href).body[:PhysicalDevice] || [] load(data) end def get(uri) if data = service.get_physical_device(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
17 entries across 17 versions & 5 rubygems