Class: OpenStax::Utilities::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/openstax_utilities.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_filenameObject

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_urlObject

Returns the value of attribute assets_url.



63
64
65
# File 'lib/openstax_utilities.rb', line 63

def assets_url
  @assets_url
end

#backendObject

Returns the value of attribute backend.



60
61
62
# File 'lib/openstax_utilities.rb', line 60

def backend
  @backend
end

#deploymentObject

Returns the value of attribute deployment.



65
66
67
# File 'lib/openstax_utilities.rb', line 65

def deployment
  @deployment
end

#deployment_versionObject

Returns the value of attribute deployment_version.



66
67
68
# File 'lib/openstax_utilities.rb', line 66

def deployment_version
  @deployment_version
end

#environment_nameObject

Returns the value of attribute environment_name.



59
60
61
# File 'lib/openstax_utilities.rb', line 59

def environment_name
  @environment_name
end

#frontendObject

Returns the value of attribute frontend.



62
63
64
# File 'lib/openstax_utilities.rb', line 62

def frontend
  @frontend
end

#release_versionObject

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_formatObject

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_formatObject

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_formatObject

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_authenticateObject

Returns the value of attribute status_authenticate.



58
59
60
# File 'lib/openstax_utilities.rb', line 58

def status_authenticate
  @status_authenticate
end