Class: Step20Dictionary
- Inherits:
-
KDomain::DomainModel::Step
- Object
- KDomain::DomainModel::Step
- Step20Dictionary
- Defined in:
- lib/k_domain/domain_model/transform_steps/step20_dictionary.rb
Overview
data dictionary
Instance Attribute Summary collapse
-
#dictionary ⇒ Object
readonly
Returns the value of attribute dictionary.
Attributes inherited from KDomain::DomainModel::Step
Instance Method Summary collapse
Methods inherited from KDomain::DomainModel::Step
#camel, #database, #database=, #database_foreign_keys, #database_tables, #domain, #domain_models, #find_foreign_table, #find_rails_structure_models, #find_table_for_model, #guard, #initialize, #investigate, #issues, #rails_resource, #rails_resource_controllers, #rails_resource_models, #rails_resource_models=, #rails_resource_routes, #rails_resource_routes=, #rails_structure, #rails_structure_controllers, #rails_structure_controllers=, #rails_structure_models, #rails_structure_models=, run, #table_name_exist?, #warning, #write
Constructor Details
This class inherits a constructor from KDomain::DomainModel::Step
Instance Attribute Details
#dictionary ⇒ Object (readonly)
Returns the value of attribute dictionary.
5 6 7 |
# File 'lib/k_domain/domain_model/transform_steps/step20_dictionary.rb', line 5 def dictionary @dictionary end |
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/k_domain/domain_model/transform_steps/step20_dictionary.rb', line 7 def call @dictionary = {} domain_models.each do |model| model[:columns].each do |column| process(model[:name], column[:name], column[:type]) end end domain_data[:dictionary] = { items: dictionary.values } end |