Sha256: 150d736fd26efc8a3020d8eccc4b783d1718207f0486e41b566e1ac6972689b1
Contents?: true
Size: 508 Bytes
Versions: 6
Compression:
Stored size: 508 Bytes
Contents
require File.expand_path("../rnat", __FILE__) module Fog module Compute class Ecloud class Rnats < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::Rnat def all data = service.get_rnats(href).body[:Rnats][:Rnat] load(data) end def get(uri) if data = service.get_rnat(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