Class: UniversalRenderer::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#httpObject (readonly)

Returns the value of attribute http.



22
23
24
# File 'lib/universal_renderer/configuration.rb', line 22

def http
  @http
end

#stream_pathObject

Returns the value of attribute stream_path.



21
22
23
# File 'lib/universal_renderer/configuration.rb', line 21

def stream_path
  @stream_path
end

#timeoutObject

Returns the value of attribute timeout.



21
22
23
# File 'lib/universal_renderer/configuration.rb', line 21

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



21
22
23
# File 'lib/universal_renderer/configuration.rb', line 21

def url
  @url
end