Sha256: eaa98fc12f77873253f8add66b6b32389c9ea2425977c172b194f4d19b34e721
Contents?: true
Size: 437 Bytes
Versions: 42
Compression:
Stored size: 437 Bytes
Contents
require 'fog/core/collection' require 'fog/sakuracloud/models/volume/plan' module Fog module Volume class SakuraCloud class Plans < Fog::Collection model Fog::Volume::SakuraCloud::Plan def all load service.list_plans.body['DiskPlans'] end def get(id) all.find { |f| f.id == id } rescue Fog::Errors::NotFound nil end end end end end
Version data entries
42 entries across 40 versions & 5 rubygems