Sha256: 1f6982e9ee9fba7080d6d9d1f606bc324fc327ccb3d7bf1b854eb1fc111c1d49

Contents?: true

Size: 614 Bytes

Versions: 2

Compression:

Stored size: 614 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2019-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

require_relative 'relationships/basic'
require_relative '../util/make_keyed_by'

module Dbee
  class Model
    # Top-level class that allows for the making of relationships.
    class Relationships
      acts_as_hashable_factory
      extend Dbee::Util::MakeKeyedBy

      register 'basic', Basic
      register '',      Basic # When type is not present this will be the default
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dbee-3.1.0 lib/dbee/model/relationships.rb
dbee-3.0.0 lib/dbee/model/relationships.rb