Class: Esquema::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/esquema/configuration.rb

Overview

The Configuration module provides configuration options for the gem.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
# File 'lib/esquema/configuration.rb', line 8

def initialize
  reset
end

Instance Attribute Details

#exclude_associationsObject

Returns the value of attribute exclude_associations.



6
7
8
# File 'lib/esquema/configuration.rb', line 6

def exclude_associations
  @exclude_associations
end

#exclude_foreign_keysObject

Returns the value of attribute exclude_foreign_keys.



6
7
8
# File 'lib/esquema/configuration.rb', line 6

def exclude_foreign_keys
  @exclude_foreign_keys
end

#excluded_columnsObject

Returns the value of attribute excluded_columns.



6
7
8
# File 'lib/esquema/configuration.rb', line 6

def excluded_columns
  @excluded_columns
end

Instance Method Details

#exclude_associations?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/esquema/configuration.rb', line 22

def exclude_associations?
  exclude_associations
end

#exclude_foreign_keys?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/esquema/configuration.rb', line 18

def exclude_foreign_keys?
  exclude_foreign_keys
end

#resetObject



12
13
14
15
16
# File 'lib/esquema/configuration.rb', line 12

def reset
  @exclude_associations = false
  @exclude_foreign_keys = true
  @excluded_columns = []
end