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.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 |
# File 'lib/pdfmonkey/configuration.rb', line 10 def initialize @host = 'https://api.pdfmonkey.io' @namespace = 'api/v1' @private_key = ENV['PDFMONKEY_PRIVATE_KEY'] @user_agent = 'Ruby' 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 |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
8 9 10 |
# File 'lib/pdfmonkey/configuration.rb', line 8 def user_agent @user_agent end |