Class: OpenStax::Utilities::Configuration
- Inherits:
-
Object
- Object
- OpenStax::Utilities::Configuration
- Defined in:
- lib/openstax_utilities.rb
Instance Attribute Summary collapse
-
#assets_manifest_filename ⇒ Object
Returns the value of attribute assets_manifest_filename.
-
#assets_url ⇒ Object
Returns the value of attribute assets_url.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#deployment ⇒ Object
Returns the value of attribute deployment.
-
#deployment_version ⇒ Object
Returns the value of attribute deployment_version.
-
#environment_name ⇒ Object
Returns the value of attribute environment_name.
-
#frontend ⇒ Object
Returns the value of attribute frontend.
-
#release_version ⇒ Object
Returns the value of attribute release_version.
-
#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.
68 69 70 71 72 73 74 75 76 |
# File 'lib/openstax_utilities.rb', line 68 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 } @environment_name = 'development' @assets_manifest_filename = 'assets.json' super end |
Instance Attribute Details
#assets_manifest_filename ⇒ Object
Returns the value of attribute assets_manifest_filename.
64 65 66 |
# File 'lib/openstax_utilities.rb', line 64 def assets_manifest_filename @assets_manifest_filename end |
#assets_url ⇒ Object
Returns the value of attribute assets_url.
63 64 65 |
# File 'lib/openstax_utilities.rb', line 63 def assets_url @assets_url end |
#backend ⇒ Object
Returns the value of attribute backend.
60 61 62 |
# File 'lib/openstax_utilities.rb', line 60 def backend @backend end |
#deployment ⇒ Object
Returns the value of attribute deployment.
65 66 67 |
# File 'lib/openstax_utilities.rb', line 65 def deployment @deployment end |
#deployment_version ⇒ Object
Returns the value of attribute deployment_version.
66 67 68 |
# File 'lib/openstax_utilities.rb', line 66 def deployment_version @deployment_version end |
#environment_name ⇒ Object
Returns the value of attribute environment_name.
59 60 61 |
# File 'lib/openstax_utilities.rb', line 59 def environment_name @environment_name end |
#frontend ⇒ Object
Returns the value of attribute frontend.
62 63 64 |
# File 'lib/openstax_utilities.rb', line 62 def frontend @frontend end |
#release_version ⇒ Object
Returns the value of attribute release_version.
61 62 63 |
# File 'lib/openstax_utilities.rb', line 61 def release_version @release_version end |
#standard_date_format ⇒ Object
Returns the value of attribute standard_date_format.
55 56 57 |
# File 'lib/openstax_utilities.rb', line 55 def standard_date_format @standard_date_format end |
#standard_datetime_format ⇒ Object
Returns the value of attribute standard_datetime_format.
56 57 58 |
# File 'lib/openstax_utilities.rb', line 56 def standard_datetime_format @standard_datetime_format end |
#standard_time_format ⇒ Object
Returns the value of attribute standard_time_format.
57 58 59 |
# File 'lib/openstax_utilities.rb', line 57 def standard_time_format @standard_time_format end |
#status_authenticate ⇒ Object
Returns the value of attribute status_authenticate.
58 59 60 |
# File 'lib/openstax_utilities.rb', line 58 def status_authenticate @status_authenticate end |