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.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
61 62 63 64 65 66 |
# File 'lib/openstax_utilities.rb', line 61 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" 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 |