Sha256: 5be8e63777d128837c2713065d2d1791d14a7637db4e60eb8d8372136113eeb3
Contents?: true
Size: 536 Bytes
Versions: 27
Compression:
Stored size: 536 Bytes
Contents
require 'fog/core/collection' require 'fog/sakuracloud/models/network/switch' module Fog module Network class SakuraCloud class Switches < Fog::Collection model Fog::Network::SakuraCloud::Switch def all load service.list_switches.body['Switches'] end def get(id) all.find { |f| f.id == id } rescue Fog::Errors::NotFound nil end def delete(id) service.delete_switch(id) true end end end end end
Version data entries
27 entries across 25 versions & 3 rubygems