module Deltacloud::CollectionMethods

Collection methods that every frontend need to provide.

Public Instance Methods

collection_exists?(c) click to toggle source

Simple check if the collection is available in the current frontend

# File lib/deltacloud/helpers/collection_helper.rb, line 36
def collection_exists?(c)
  collections.include? c
end
collection_names() click to toggle source

Return all collection names provided by the current frontend

# File lib/deltacloud/helpers/collection_helper.rb, line 30
def collection_names
  module_klass::Collections.collection_names
end
collections() click to toggle source

Return all collections provided by the current frontend

# File lib/deltacloud/helpers/collection_helper.rb, line 24
def collections
  module_klass::Collections.collections
end