Sha256: 5c5f44605223979855c085feb8c938f584c67c6451b2b6645e869185b449d50a
Contents?: true
Size: 564 Bytes
Versions: 6
Compression:
Stored size: 564 Bytes
Contents
require File.expand_path("../hardware_configuration", __FILE__) module Fog module Compute class Ecloud class HardwareConfigurations < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::HardwareConfiguration def all data = service.get_server(href).body load(data) end def get(uri) if data = service.get_hardware_configuration(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