Class: MissionKontrolRelay::ValidationMappingService

Inherits:
Object
  • Object
show all
Defined in:
app/services/mission_kontrol_relay/validation_mapping_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ ValidationMappingService

Returns a new instance of ValidationMappingService.


5
6
7
# File 'app/services/mission_kontrol_relay/validation_mapping_service.rb', line 5

def initialize(model)
  @model = model
end

Instance Method Details

#buildObject


9
10
11
12
13
14
# File 'app/services/mission_kontrol_relay/validation_mapping_service.rb', line 9

def build
  {
    model: @model.name,
    validations: model_validations
  }
end