Class: MissionKontrolRelay::AssociationMappingService
- Inherits:
-
Object
- Object
- MissionKontrolRelay::AssociationMappingService
- Defined in:
- app/services/mission_kontrol_relay/association_mapping_service.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(model) ⇒ AssociationMappingService
constructor
A new instance of AssociationMappingService.
Constructor Details
#initialize(model) ⇒ AssociationMappingService
Returns a new instance of AssociationMappingService.
5 6 7 |
# File 'app/services/mission_kontrol_relay/association_mapping_service.rb', line 5 def initialize(model) @model = model end |
Instance Method Details
#build ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/services/mission_kontrol_relay/association_mapping_service.rb', line 9 def build { model: @model.name, columns: model_columns, associations: model_associations } end |