Class: FormDurations::StandardDuration

Inherits:
Object
  • Object
show all
Defined in:
app/services/form_durations/standard_duration.rb

Overview

A class responsible for knowing about and returning the standard 60 day expiration duration

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.buildFormDurations::StandardDuration

Builds a FormDurations::StandardDuration instance from given options

Returns:



13
14
15
# File 'app/services/form_durations/standard_duration.rb', line 13

def self.build
  new
end

Instance Method Details

#spanActiveSupport::Duration

Gets the standard the expiration duration

Returns:

  • (ActiveSupport::Duration)

    60 days



22
23
24
# File 'app/services/form_durations/standard_duration.rb', line 22

def span
  60.days
end