Class: Qa::Authorities::Base

Inherits:
Object
  • Object
show all
Extended by:
Deprecation
Defined in:
lib/qa/authorities/base.rb

Instance Method Summary collapse

Instance Method Details

#allObject

By default, #all is not implemented. If the subclassed authority does have this feature then you will overide the #all method in the subclassed authority. TODO: need to set some kind of error here



11
12
# File 'lib/qa/authorities/base.rb', line 11

def all
end

#find(id) ⇒ Object

By default, #find is not implemented. If the subclassed authority does have this feature then you will overide the #find method in the subclassed authority. TODO: need to set some kind of error here



18
19
# File 'lib/qa/authorities/base.rb', line 18

def find(id)
end

#full_record(id, _subauthority = nil) ⇒ Object



21
22
23
24
# File 'lib/qa/authorities/base.rb', line 21

def full_record(id, _subauthority = nil)
  Deprecation.warn(".full_record is deprecated. Use .find instead")
  find(id)
end