class ObjectJSONMapper::Associations::Registry

Collection of model associations

Attributes

associations[R]

Public Class Methods

new() click to toggle source
# File lib/object_json_mapper/associations/registry.rb, line 14
def initialize
  @associations = []
end

Public Instance Methods

find(name) click to toggle source

@param name [Symbol] @return [ObjectJSONMapper::Associations::Association]

# File lib/object_json_mapper/associations/registry.rb, line 20
def find(name)
  associations.find { |a| a.name == name }
end