Class: UniversalRenderer::Configuration
- Inherits:
-
Object
- Object
- UniversalRenderer::Configuration
- Defined in:
- lib/universal_renderer/configuration.rb
Overview
Configuration for UniversalRenderer.
This object holds plain Ruby defaults only. It never reads environment
variables itself; binding configuration to ENV is the host application's
responsibility, done in the initializer (see the generated
config/initializers/universal_renderer.rb). The documented env-var
convention is the UNIVERSAL_RENDERER_* prefix.
Defined Under Namespace
Classes: Http
Instance Attribute Summary collapse
-
#http ⇒ Object
readonly
Returns the value of attribute http.
-
#stream_path ⇒ Object
Returns the value of attribute stream_path.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 |
# File 'lib/universal_renderer/configuration.rb', line 24 def initialize @url = nil @timeout = 3 @stream_path = "/stream" @http = Http.new end |
Instance Attribute Details
#http ⇒ Object (readonly)
Returns the value of attribute http.
22 23 24 |
# File 'lib/universal_renderer/configuration.rb', line 22 def http @http end |
#stream_path ⇒ Object
Returns the value of attribute stream_path.
21 22 23 |
# File 'lib/universal_renderer/configuration.rb', line 21 def stream_path @stream_path end |
#timeout ⇒ Object
Returns the value of attribute timeout.
21 22 23 |
# File 'lib/universal_renderer/configuration.rb', line 21 def timeout @timeout end |
#url ⇒ Object
Returns the value of attribute url.
21 22 23 |
# File 'lib/universal_renderer/configuration.rb', line 21 def url @url end |