Class: DataFactory::Base

Inherits:
Object
  • Object
show all
Extended by:
BaseDSL, BaseFactory
Includes:
BaseAPI
Defined in:
lib/data_factory/base.rb

Overview

The Base class provides a class designed to be sub-classed. It does not create any methods on its own, but is extended with class methods from the BaseDSL and BaseFactory modules and has the BaseAPI module included to provide instance methods.

Constant Summary

Constants included from Random

Random::CHARS, Random::HEX_CHARS

Instance Attribute Summary

Attributes included from BaseDSL

#column_defaults, #column_details, #meta_data_loaded, #populate_nullable_columns, #table_name

Attributes included from BaseAPI

#binds, #column_values, #insert_statement

Method Summary

Methods included from BaseDSL

column_default, column_detail, database_interface, load_meta_data, set_column_default, set_database_interface, set_populate_nullable_columns, set_table_name

Methods included from BaseFactory

build, create, create!

Methods included from BaseAPI

#column_default, #column_defaults, #column_detail, #column_details, #column_value, #commit, #db_interface, #generate_column_data, #generate_insert, #initialize, #run_insert, #table_name, #where_clause_for

Methods included from Random

#random_hex_string_of_length, #random_hex_string_upto_length, #random_integer, #random_string_of_length, #random_string_upto_length