Class: Growth::Operations::RetentionReport::Validate
- Inherits:
-
Object
- Object
- Growth::Operations::RetentionReport::Validate
- Includes:
- Dry::Transaction::Operation
- Defined in:
- lib/growth/operations/retention_report/validate.rb
Instance Method Summary collapse
Instance Method Details
#call(input) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/growth/operations/retention_report/validate.rb', line 7 def call(input) if input[:associations].blank? Failure({report: {resources_stats: []}}) else Success(input) end end |