class Berta::Settings
Class for storing setting for Berta
Constants
- CONFIGURATION
Public Class Methods
expiration_offset()
click to toggle source
Expiration offset can be written in settings file in human readable form. This function will return expiration offset value as integer.
@return [Numeric] Expiration offset
# File lib/berta/settings.rb, line 33 def self.expiration_offset ChronicDuration.parse(get('expiration.offset')) end
notification_deadline()
click to toggle source
Notification
deadline can be written in settings file in human readable form. This function will return notification deadline value as integer.
@return [Numeric] Notification
deadline
# File lib/berta/settings.rb, line 24 def self.notification_deadline ChronicDuration.parse(get('notification.deadline')) end