Class: Qa::Authorities::Base Abstract
- Inherits:
-
Object
- Object
- Qa::Authorities::Base
- Defined in:
- lib/qa/authorities/base.rb
Overview
Direct Known Subclasses
AssignFast::GenericAuthority, Crossref::GenericAuthority, Discogs::GenericAuthority, Geonames, Getty::AAT, Getty::TGN, Getty::Ulan, LinkedData::GenericAuthority, Loc::GenericAuthority, Local::FileBasedAuthority, Local::TableBasedAuthority, Mesh, Oclcts::GenericOclcAuthority, Tgnlang
Instance Method Summary collapse
- #all ⇒ Enumerable abstract
- #find(_id) ⇒ Hash abstract
Instance Method Details
#all ⇒ Enumerable
This method is abstract.
By default, #all is not implemented. A subclass authority must implement this method to conform to the generic interface.
TODO:
better specify return type
15 16 17 |
# File 'lib/qa/authorities/base.rb', line 15 def all raise NotImplementedError, "#{self.class}#all is unimplemented." end |
#find(_id) ⇒ Hash
This method is abstract.
By default, #find is not implemented. A subclass authority must implement this method to conform to the generic interface.
TODO:
better specify return type
29 30 31 |
# File 'lib/qa/authorities/base.rb', line 29 def find(_id) raise NotImplementedError, "#{self.class}#find is unimplemented." end |