Class: Pdfmonkey::Configuration
- Inherits:
-
Object
- Object
- Pdfmonkey::Configuration
- Defined in:
- lib/pdfmonkey/configuration.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 |
# File 'lib/pdfmonkey/configuration.rb', line 9 def initialize @host = 'https://api.pdfmonkey.io' @namespace = 'api/v1' @private_key = ENV['PDFMONKEY_PRIVATE_KEY'] end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/pdfmonkey/configuration.rb', line 5 def host @host end |
#namespace ⇒ Object
Returns the value of attribute namespace.
6 7 8 |
# File 'lib/pdfmonkey/configuration.rb', line 6 def namespace @namespace end |
#private_key ⇒ Object
Returns the value of attribute private_key.
7 8 9 |
# File 'lib/pdfmonkey/configuration.rb', line 7 def private_key @private_key end |