Class: Qa::Authorities::Local
- Extended by:
- Deprecation
- Defined in:
- lib/qa/authorities/local.rb
Class Method Summary collapse
Instance Method Summary collapse
- #full_record(id, sub_authority) ⇒ Object
- #get_full_record(id, sub_authority) ⇒ Object
- #search(q, sub_authority) ⇒ Object
Methods inherited from Base
Class Method Details
.sub_authorities ⇒ Object
14 15 16 |
# File 'lib/qa/authorities/local.rb', line 14 def Subauthority.names end |
.sub_authority(name) ⇒ Object
8 9 10 11 12 |
# File 'lib/qa/authorities/local.rb', line 8 def (name) @sub_authorities ||= {} raise ArgumentError, "Invalid sub-authority '#{name}'" unless Subauthority.names.include?(name) @sub_authorities[name] ||= Subauthority.new(name) end |
.terms(sub_authority) ⇒ Object
18 19 20 |
# File 'lib/qa/authorities/local.rb', line 18 def terms() ().terms end |
Instance Method Details
#full_record(id, sub_authority) ⇒ Object
29 30 31 |
# File 'lib/qa/authorities/local.rb', line 29 def full_record(id, ) ().full_record(id) end |
#get_full_record(id, sub_authority) ⇒ Object
33 34 35 36 |
# File 'lib/qa/authorities/local.rb', line 33 def get_full_record(id, ) Deprecation.warn(Local, "get_full_record is deprecated and will be removed in 0.1.0. Use full_record instead", caller) full_record(id, ) end |
#search(q, sub_authority) ⇒ Object
25 26 27 |
# File 'lib/qa/authorities/local.rb', line 25 def search(q, ) ().search(q) end |