Method: Qa::LDF::Model#authority

Defined in:
lib/qa/ldf/model.rb

#authorityQa::LDF::Authority

Examples:

# Regester the namespace with the authority class.
class MyAuthority < Authority
  register_namespace(namespace: 'http://example.com/my_authority#',
                     klass:     self)
end

model = Qa::LDF::Model.new('http://example.com/my_authority#moomin')

model.authority # => #<MyAuthority:0xbad1dea>

Returns:



24
25
26
# File 'lib/qa/ldf/model.rb', line 24

def authority
  Qa::LDF::Authority.for(namespace: authority_namespace)
end