Module: WithEvents::Validator

Included in:
Trigger, Worker
Defined in:
lib/with_events/validator.rb

Constant Summary collapse

HOURLY_APPEARANCE =
:hourly
DAILY_APPEARANCE =
:daily

Instance Method Summary collapse

Instance Method Details

#valid_event?(event, appearance) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
12
# File 'lib/with_events/validator.rb', line 8

def valid_event?(event, appearance)
  background_event?(event) &&
    valid_appearance?(event, appearance) &&
    valid_batch?(event)
end