Class: ConventionalModels::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/conventional_models/config.rb

Defined Under Namespace

Classes: Builder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Config

Returns a new instance of Config.



3
4
5
6
# File 'lib/conventional_models/config.rb', line 3

def initialize(&block)
  builder = Builder.new(self)
  builder.instance_eval(&block) if block
end

Instance Attribute Details

#base_classObject

Returns the value of attribute base_class.



8
9
10
# File 'lib/conventional_models/config.rb', line 8

def base_class
  @base_class
end

#belongs_to_matcherObject

Returns the value of attribute belongs_to_matcher.



8
9
10
# File 'lib/conventional_models/config.rb', line 8

def belongs_to_matcher
  @belongs_to_matcher
end

#belongs_to_nameObject

Returns the value of attribute belongs_to_name.



8
9
10
# File 'lib/conventional_models/config.rb', line 8

def belongs_to_name
  @belongs_to_name
end

#class_nameObject

Returns the value of attribute class_name.



8
9
10
# File 'lib/conventional_models/config.rb', line 8

def class_name
  @class_name
end

#connectionObject

Returns the value of attribute connection.



8
9
10
# File 'lib/conventional_models/config.rb', line 8

def connection
  @connection
end

#ignored_tablesObject

Returns the value of attribute ignored_tables.



8
9
10
# File 'lib/conventional_models/config.rb', line 8

def ignored_tables
  @ignored_tables
end

#module_nameObject

Returns the value of attribute module_name.



8
9
10
# File 'lib/conventional_models/config.rb', line 8

def module_name
  @module_name
end

#primary_key_nameObject

Returns the value of attribute primary_key_name.



8
9
10
# File 'lib/conventional_models/config.rb', line 8

def primary_key_name
  @primary_key_name
end