class Octofacts::Backends::Base

This is a template class to define the minimum API to be implemented

Public Instance Methods

facts() click to toggle source

Returns a hash of the facts selected based on current criteria. Once this is done, it is no longer possible to select, reject, or prefer.

# File lib/octofacts/backends/base.rb, line 7
def facts
  # :nocov:
  raise NotImplementedError, "This method needs to be implemented in the subclass"
  # :nocov:
end
prefer(*) click to toggle source

Reorders possible fact sets based on the criteria.

# File lib/octofacts/backends/base.rb, line 28
def prefer(*)
  # :nocov:
  raise NotImplementedError, "This method needs to be implemented in the subclass"
  # :nocov:
end
reject(*) click to toggle source

Removes possible fact sets based on the criteria.

# File lib/octofacts/backends/base.rb, line 21
def reject(*)
  # :nocov:
  raise NotImplementedError, "This method needs to be implemented in the subclass"
  # :nocov:
end
select(*) click to toggle source

Filters the possible fact sets based on the criteria.

# File lib/octofacts/backends/base.rb, line 14
def select(*)
  # :nocov:
  raise NotImplementedError, "This method needs to be implemented in the subclass"
  # :nocov:
end