Sha256: cd6a089f4b7bbe3976663d04a597f71885e6869bc767df347e42215fba1e04fa

Contents?: true

Size: 720 Bytes

Versions: 7

Compression:

Stored size: 720 Bytes

Contents

require 'deprecation'

module Qa::Authorities
  class Base
    extend Deprecation

    # 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
    def all
    end

    # 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
    def find id
    end

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

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qa-0.10.1 lib/qa/authorities/base.rb
qa-0.10.0 lib/qa/authorities/base.rb
qa-0.9.0 lib/qa/authorities/base.rb
qa-0.8.0 lib/qa/authorities/base.rb
qa-0.7.0 lib/qa/authorities/base.rb
qa-0.6.0 lib/qa/authorities/base.rb
qa-0.5.0 lib/qa/authorities/base.rb