Class: Configuration
- Inherits:
-
Object
- Object
- Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#custom_database_type ⇒ Object
Returns the value of attribute custom_database_type.
-
#custom_dbml_content ⇒ Object
Returns the value of attribute custom_dbml_content.
-
#custom_dbml_file_path ⇒ Object
Returns the value of attribute custom_dbml_file_path.
-
#custom_primary_key ⇒ Object
Returns the value of attribute custom_primary_key.
-
#custom_project_name ⇒ Object
Returns the value of attribute custom_project_name.
-
#custom_project_notes ⇒ Object
Returns the value of attribute custom_project_notes.
-
#custom_tables ⇒ Object
Returns the value of attribute custom_tables.
Instance Method Summary collapse
Instance Attribute Details
#custom_database_type ⇒ Object
Returns the value of attribute custom_database_type.
14 15 16 |
# File 'lib/configuration.rb', line 14 def custom_database_type @custom_database_type end |
#custom_dbml_content ⇒ Object
Returns the value of attribute custom_dbml_content.
14 15 16 |
# File 'lib/configuration.rb', line 14 def custom_dbml_content @custom_dbml_content end |
#custom_dbml_file_path ⇒ Object
Returns the value of attribute custom_dbml_file_path.
14 15 16 |
# File 'lib/configuration.rb', line 14 def custom_dbml_file_path @custom_dbml_file_path end |
#custom_primary_key ⇒ Object
Returns the value of attribute custom_primary_key.
14 15 16 |
# File 'lib/configuration.rb', line 14 def custom_primary_key @custom_primary_key end |
#custom_project_name ⇒ Object
Returns the value of attribute custom_project_name.
14 15 16 |
# File 'lib/configuration.rb', line 14 def custom_project_name @custom_project_name end |
#custom_project_notes ⇒ Object
Returns the value of attribute custom_project_notes.
14 15 16 |
# File 'lib/configuration.rb', line 14 def custom_project_notes @custom_project_notes end |
#custom_tables ⇒ Object
Returns the value of attribute custom_tables.
14 15 16 |
# File 'lib/configuration.rb', line 14 def custom_tables @custom_tables end |
Instance Method Details
#configure_from_hash(yaml_data) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/configuration.rb', line 4 def configure_from_hash(yaml_data) @custom_database_type = yaml_data['custom_database_type'] @custom_dbml_content = yaml_data['custom_dbml_content'] @custom_dbml_file_path = yaml_data['custom_dbml_file_path'] @custom_primary_key = yaml_data['custom_primary_key'] @custom_project_name = yaml_data['custom_project_name'] @custom_project_notes = yaml_data['custom_project_notes'] @custom_tables = yaml_data['custom_tables'] end |