Class: Spanner::Translator::Configuration
- Inherits:
-
Object
- Object
- Spanner::Translator::Configuration
- Defined in:
- lib/spanner/translator/configuration.rb
Overview
Configuration
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#db_schema ⇒ Object
Returns the value of attribute db_schema.
-
#default_primary_keys ⇒ Object
Returns the value of attribute default_primary_keys.
-
#primary_key_type ⇒ Object
Returns the value of attribute primary_key_type.
-
#rules ⇒ Object
Returns the value of attribute rules.
-
#skip_indexes ⇒ Object
Returns the value of attribute skip_indexes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 |
# File 'lib/spanner/translator/configuration.rb', line 10 def initialize reset! end |
Instance Attribute Details
#checks ⇒ Object
Returns the value of attribute checks.
7 8 9 |
# File 'lib/spanner/translator/configuration.rb', line 7 def checks @checks end |
#db_schema ⇒ Object
Returns the value of attribute db_schema.
7 8 9 |
# File 'lib/spanner/translator/configuration.rb', line 7 def db_schema @db_schema end |
#default_primary_keys ⇒ Object
Returns the value of attribute default_primary_keys.
8 9 10 |
# File 'lib/spanner/translator/configuration.rb', line 8 def default_primary_keys @default_primary_keys end |
#primary_key_type ⇒ Object
Returns the value of attribute primary_key_type.
7 8 9 |
# File 'lib/spanner/translator/configuration.rb', line 7 def primary_key_type @primary_key_type end |
#rules ⇒ Object
Returns the value of attribute rules.
7 8 9 |
# File 'lib/spanner/translator/configuration.rb', line 7 def rules @rules end |
#skip_indexes ⇒ Object
Returns the value of attribute skip_indexes.
7 8 9 |
# File 'lib/spanner/translator/configuration.rb', line 7 def skip_indexes @skip_indexes end |
Instance Method Details
#reset! ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/spanner/translator/configuration.rb', line 14 def reset! @rules = nil @checks = nil @db_schema = "db/schema.rb" @default_primary_keys = ["id"] @skip_indexes = false @primary_key_type = :integer end |