Class: Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#custom_database_typeObject

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_contentObject

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_pathObject

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_keyObject

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_nameObject

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_notesObject

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_tablesObject

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