class Qa::Authorities::Base
@abstract The base class for all authorites. Implementing subclasses must
provide {#all} and #{find} methods.
@todo What about {#search}?
Public Instance Methods
all()
click to toggle source
@abstract By default, all
is not implemented. A subclass authority must
implement this method to conform to the generic interface.
@return [Enumerable] @raise [NotImplementedError] when this method is abstract.
@todo better specify return type
# File lib/qa/authorities/base.rb, line 15 def all raise NotImplementedError, "#{self.class}#all is unimplemented." end
find(_id)
click to toggle source
@abstract By default, find
is not implemented. A subclass authority must
implement this method to conform to the generic interface.
@param id [String] the id string for the authority to lookup
@return [Hash] @raise [NotImplementedError] when this method is abstract.
@todo better specify return type
# File lib/qa/authorities/base.rb, line 29 def find(_id) raise NotImplementedError, "#{self.class}#find is unimplemented." end