Class: Growth::Operations::RetentionReport::Validate

Inherits:
Object
  • Object
show all
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