Class: FormDurations::StandardDuration
- Inherits:
-
Object
- Object
- FormDurations::StandardDuration
- 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
-
.build ⇒ FormDurations::StandardDuration
Builds a FormDurations::StandardDuration instance from given options.
Instance Method Summary collapse
-
#span ⇒ ActiveSupport::Duration
Gets the standard the expiration duration.
Class Method Details
.build ⇒ FormDurations::StandardDuration
Builds a FormDurations::StandardDuration instance from given options
13 14 15 |
# File 'app/services/form_durations/standard_duration.rb', line 13 def self.build new end |
Instance Method Details
#span ⇒ ActiveSupport::Duration
Gets the standard the expiration duration
22 23 24 |
# File 'app/services/form_durations/standard_duration.rb', line 22 def span 60.days end |