Class: Roistat::Configuration
- Inherits:
-
Object
- Object
- Roistat::Configuration
- Defined in:
- lib/roistat/configuration.rb,
sig/roistat.rbs
Constant Summary collapse
- DEFAULT_BASE_URL =
"https://cloud.roistat.com/api/v1"- DEFAULT_TIMEOUT =
30- DEFAULT_OPEN_TIMEOUT =
10- DEFAULT_BINARY_TEMPFILE_THRESHOLD =
1 * 1024 * 1024
Instance Attribute Summary collapse
-
#api_key ⇒ String?
Returns the value of attribute api_key.
-
#base_url ⇒ String
Returns the value of attribute base_url.
-
#binary_tempfile_threshold ⇒ Integer
Returns the value of attribute binary_tempfile_threshold.
-
#open_timeout ⇒ Integer
Returns the value of attribute open_timeout.
-
#project ⇒ String?
Returns the value of attribute project.
-
#timeout ⇒ Integer
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 |
# File 'lib/roistat/configuration.rb', line 11 def initialize @base_url = DEFAULT_BASE_URL @timeout = DEFAULT_TIMEOUT @open_timeout = DEFAULT_OPEN_TIMEOUT @binary_tempfile_threshold = DEFAULT_BINARY_TEMPFILE_THRESHOLD end |
Instance Attribute Details
#api_key ⇒ String?
Returns the value of attribute api_key.
9 10 11 |
# File 'lib/roistat/configuration.rb', line 9 def api_key @api_key end |
#base_url ⇒ String
Returns the value of attribute base_url.
9 10 11 |
# File 'lib/roistat/configuration.rb', line 9 def base_url @base_url end |
#binary_tempfile_threshold ⇒ Integer
Returns the value of attribute binary_tempfile_threshold.
9 10 11 |
# File 'lib/roistat/configuration.rb', line 9 def binary_tempfile_threshold @binary_tempfile_threshold end |
#open_timeout ⇒ Integer
Returns the value of attribute open_timeout.
9 10 11 |
# File 'lib/roistat/configuration.rb', line 9 def open_timeout @open_timeout end |
#project ⇒ String?
Returns the value of attribute project.
9 10 11 |
# File 'lib/roistat/configuration.rb', line 9 def project @project end |
#timeout ⇒ Integer
Returns the value of attribute timeout.
9 10 11 |
# File 'lib/roistat/configuration.rb', line 9 def timeout @timeout end |