module ROM::LDAP::Associations::SelfRef

Public Class Methods

included(klass) click to toggle source
Calls superclass method
# File lib/rom/ldap/associations/self_ref.rb, line 7
def self.included(klass)
  super
  klass.memoize :join_keys, :source_attr, :target_attr
end

Public Instance Methods

join_keys() click to toggle source

@return [Hash]

@api public

# File lib/rom/ldap/associations/self_ref.rb, line 15
def join_keys
  { source_attr => target_attr }
end
source_attr() click to toggle source

@return [ROM::LDAP::Attribute]

@api public

# File lib/rom/ldap/associations/self_ref.rb, line 22
def source_attr
  source[source_key]
end
target_attr() click to toggle source

@return [ROM::LDAP::Attribute]

@api public

# File lib/rom/ldap/associations/self_ref.rb, line 29
def target_attr
  target[target_key]
end