Class: ConvertApi::Configuration
- Inherits:
-
Object
- Object
- ConvertApi::Configuration
- Defined in:
- lib/convert_api/configuration.rb
Instance Attribute Summary collapse
-
#api_credentials ⇒ Object
Returns the value of attribute api_credentials.
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#connect_timeout ⇒ Object
Returns the value of attribute connect_timeout.
-
#conversion_timeout ⇒ Object
Returns the value of attribute conversion_timeout.
-
#conversion_timeout_delta ⇒ Object
Returns the value of attribute conversion_timeout_delta.
-
#download_timeout ⇒ Object
Returns the value of attribute download_timeout.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#upload_timeout ⇒ Object
Returns the value of attribute upload_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_credentials ⇒ Object
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_uri ⇒ Object
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_timeout ⇒ Object
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_timeout ⇒ Object
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_delta ⇒ Object
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_timeout ⇒ Object
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_timeout ⇒ Object
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_timeout ⇒ Object
Returns the value of attribute upload_timeout.
9 10 11 |
# File 'lib/convert_api/configuration.rb', line 9 def upload_timeout @upload_timeout end |