Class: Qa::Authorities::Base Abstract
- Inherits:
-
Object
- Object
- Qa::Authorities::Base
- Extended by:
- Deprecation
- Defined in:
- lib/qa/authorities/base.rb
Overview
Direct Known Subclasses
AssignFast::GenericAuthority, Crossref::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
-
#full_record(id, _subauthority = nil) ⇒ Object
deprecated
Deprecated.
use #find instead
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
19 20 21 |
# File 'lib/qa/authorities/base.rb', line 19 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
33 34 35 |
# File 'lib/qa/authorities/base.rb', line 33 def find(_id) raise NotImplementedError, "#{self.class}#find is unimplemented." end |
#full_record(id, _subauthority = nil) ⇒ Object
Deprecated.
use #find instead
39 40 41 42 |
# File 'lib/qa/authorities/base.rb', line 39 def full_record(id, = nil) Deprecation.warn('#full_record is deprecated. Use #find instead') find(id) end |