Class: Gotenberg::Rails::Configuration
- Inherits:
-
Object
- Object
- Gotenberg::Rails::Configuration
- Defined in:
- lib/gotenberg/rails/configuration.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#pdf_options ⇒ Object
Returns the value of attribute pdf_options.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 |
# File 'lib/gotenberg/rails/configuration.rb', line 8 def initialize @endpoint = ENV.fetch("GOTENBERG_ENDPOINT", "http://localhost:3000") @request_timeout = 60 @open_timeout = 10 @pdf_options = {} @headers = {} end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
6 7 8 |
# File 'lib/gotenberg/rails/configuration.rb', line 6 def endpoint @endpoint end |
#headers ⇒ Object
Returns the value of attribute headers.
6 7 8 |
# File 'lib/gotenberg/rails/configuration.rb', line 6 def headers @headers end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
6 7 8 |
# File 'lib/gotenberg/rails/configuration.rb', line 6 def open_timeout @open_timeout end |
#pdf_options ⇒ Object
Returns the value of attribute pdf_options.
6 7 8 |
# File 'lib/gotenberg/rails/configuration.rb', line 6 def @pdf_options end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
6 7 8 |
# File 'lib/gotenberg/rails/configuration.rb', line 6 def request_timeout @request_timeout end |