Module: Satisfactory

Defined in:
lib/satisfactory.rb,
lib/satisfactory/root.rb,
lib/satisfactory/loader.rb,
lib/satisfactory/record.rb,
lib/satisfactory/version.rb,
lib/satisfactory/collection.rb,
lib/satisfactory/upstream_record_finder.rb

Overview

Satisfactory is a factory library for Ruby, helping you to navigate your factory associations.

Currently implemented atop FactoryBot, but could be extended to support other factory libraries.

Since:

  • 0.2.0

Defined Under Namespace

Classes: Collection, Loader, Record, Root, UpstreamRecordFinder

Constant Summary collapse

VERSION =

Since:

  • 0.2.0

"0.3.2".freeze

Class Method Summary collapse

Class Method Details

.factory_configurations{Symbol => Hash}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a hash of factory configurations by factory name.

Returns:

  • ({Symbol => Hash})

    a hash of factory configurations by factory name

Since:

  • 0.2.0



20
21
22
# File 'lib/satisfactory.rb', line 20

def factory_configurations
  @factory_configurations ||= Loader.factory_configurations
end

.rootObject

Since:

  • 0.2.0



14
15
16
# File 'lib/satisfactory.rb', line 14

def root
  Root.new
end