class ROM::Associations::ThroughIdentifier

@api private

Attributes

assoc_name[R]

@api private

source[R]

@api private

target[R]

@api private

Public Class Methods

[](source, target, assoc_name = nil) click to toggle source

@api private

# File lib/rom/associations/through_identifier.rb, line 19
def self.[](source, target, assoc_name = nil)
  new(source, target, assoc_name || default_assoc_name(target))
end
default_assoc_name(relation) click to toggle source

@api private

# File lib/rom/associations/through_identifier.rb, line 24
def self.default_assoc_name(relation)
  Inflector.singularize(relation).to_sym
end
new(source, target, assoc_name) click to toggle source

@api private

# File lib/rom/associations/through_identifier.rb, line 29
def initialize(source, target, assoc_name)
  @source = source
  @target = target
  @assoc_name = assoc_name
end

Public Instance Methods

to_sym() click to toggle source

@api private

# File lib/rom/associations/through_identifier.rb, line 36
def to_sym
  source
end