Class: OpenStax::Utilities::Configuration
- Inherits:
-
Object
- Object
- OpenStax::Utilities::Configuration
- Defined in:
- lib/openstax_utilities.rb
Instance Attribute Summary collapse
-
#standard_date_format ⇒ Object
Returns the value of attribute standard_date_format.
-
#standard_datetime_format ⇒ Object
Returns the value of attribute standard_datetime_format.
-
#standard_time_format ⇒ Object
Returns the value of attribute standard_time_format.
-
#status_authenticate ⇒ Object
Returns the value of attribute status_authenticate.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
62 63 64 65 66 67 68 |
# File 'lib/openstax_utilities.rb', line 62 def initialize @standard_date_format = "%b %d, %Y" @standard_datetime_format = "%b %d, %Y %l:%M %p %Z" @standard_time_format = "%l:%M %p %Z" @status_authenticate = -> { head :forbidden } super end |
Instance Attribute Details
#standard_date_format ⇒ Object
Returns the value of attribute standard_date_format.
57 58 59 |
# File 'lib/openstax_utilities.rb', line 57 def standard_date_format @standard_date_format end |
#standard_datetime_format ⇒ Object
Returns the value of attribute standard_datetime_format.
58 59 60 |
# File 'lib/openstax_utilities.rb', line 58 def standard_datetime_format @standard_datetime_format end |
#standard_time_format ⇒ Object
Returns the value of attribute standard_time_format.
59 60 61 |
# File 'lib/openstax_utilities.rb', line 59 def standard_time_format @standard_time_format end |
#status_authenticate ⇒ Object
Returns the value of attribute status_authenticate.
60 61 62 |
# File 'lib/openstax_utilities.rb', line 60 def status_authenticate @status_authenticate end |