Class: ConvertApi::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



12
13
14
15
16
17
18
19
# File 'lib/convert_api/configuration.rb', line 12

def initialize
  @base_uri = URI('https://v2.convertapi.com/')
  @connect_timeout = 5
  @read_timeout = 1800
  @conversion_timeout_delta = 10
  @upload_timeout = 1800
  @download_timeout = 1800
end

Instance Attribute Details

#api_credentialsObject

Returns the value of attribute api_credentials.



3
4
5
# File 'lib/convert_api/configuration.rb', line 3

def api_credentials
  @api_credentials
end

#base_uriObject

Returns the value of attribute base_uri.



4
5
6
# File 'lib/convert_api/configuration.rb', line 4

def base_uri
  @base_uri
end

#connect_timeoutObject

Returns the value of attribute connect_timeout.



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

def connect_timeout
  @connect_timeout
end

#conversion_timeoutObject

Returns the value of attribute conversion_timeout.



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

def conversion_timeout
  @conversion_timeout
end

#conversion_timeout_deltaObject

Returns the value of attribute conversion_timeout_delta.



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

def conversion_timeout_delta
  @conversion_timeout_delta
end

#download_timeoutObject

Returns the value of attribute download_timeout.



10
11
12
# File 'lib/convert_api/configuration.rb', line 10

def download_timeout
  @download_timeout
end

#read_timeoutObject

Returns the value of attribute read_timeout.



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

def read_timeout
  @read_timeout
end

#upload_timeoutObject

Returns the value of attribute upload_timeout.



9
10
11
# File 'lib/convert_api/configuration.rb', line 9

def upload_timeout
  @upload_timeout
end