Class: Pdfmonkey::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pdfmonkey/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/pdfmonkey/configuration.rb', line 5

def host
  @host
end

#namespaceObject

Returns the value of attribute namespace.



6
7
8
# File 'lib/pdfmonkey/configuration.rb', line 6

def namespace
  @namespace
end

#private_keyObject

Returns the value of attribute private_key.



7
8
9
# File 'lib/pdfmonkey/configuration.rb', line 7

def private_key
  @private_key
end

#user_agentObject

Returns the value of attribute user_agent.



8
9
10
# File 'lib/pdfmonkey/configuration.rb', line 8

def user_agent
  @user_agent
end