Module: ActiveStorageValidations::Matchers::ASVTimeoutable

Extended by:
ActiveSupport::Concern
Included in:
AspectRatioValidatorMatcher, ContentTypeValidatorMatcher, DimensionValidatorMatcher, DurationValidatorMatcher, PagesValidatorMatcher, ProcessableFileValidatorMatcher, WithAudioValidatorMatcher
Defined in:
lib/active_storage_validations/matchers/shared/asv_timeoutable.rb

Constant Summary collapse

UNSET =
Object.new.freeze

Instance Method Summary collapse

Instance Method Details

#initialize_timeoutableObject



12
13
14
# File 'lib/active_storage_validations/matchers/shared/asv_timeoutable.rb', line 12

def initialize_timeoutable
  @timeout = UNSET
end

#timeout(value) ⇒ Object



16
17
18
19
# File 'lib/active_storage_validations/matchers/shared/asv_timeoutable.rb', line 16

def timeout(value)
  @timeout = value
  self
end