Class: Convoy::ConvoyConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/convoy/convoy_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConvoyConfiguration

Returns a new instance of ConvoyConfiguration.



17
18
19
20
21
22
23
24
25
26
# File 'lib/convoy/convoy_configuration.rb', line 17

def initialize
  @base_uri = "https://dashboard.getconvoy.io/api"
  @path_version = "/v1"
  @ssl = true
  @debug = false
  @http_open_timeout = 10
  @http_read_timeout = 10
  @http_continue_timeout = 10
  @http_ssl_timeout = 10
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



6
7
8
# File 'lib/convoy/convoy_configuration.rb', line 6

def api_key
  @api_key
end

#base_uriObject

Returns the value of attribute base_uri.



7
8
9
# File 'lib/convoy/convoy_configuration.rb', line 7

def base_uri
  @base_uri
end

#debugObject

Returns the value of attribute debug.



5
6
7
# File 'lib/convoy/convoy_configuration.rb', line 5

def debug
  @debug
end

#http_continue_timeoutObject

Returns the value of attribute http_continue_timeout.



14
15
16
# File 'lib/convoy/convoy_configuration.rb', line 14

def http_continue_timeout
  @http_continue_timeout
end

#http_open_timeoutObject

Returns the value of attribute http_open_timeout.



12
13
14
# File 'lib/convoy/convoy_configuration.rb', line 12

def http_open_timeout
  @http_open_timeout
end

#http_read_timeoutObject

Returns the value of attribute http_read_timeout.



13
14
15
# File 'lib/convoy/convoy_configuration.rb', line 13

def http_read_timeout
  @http_read_timeout
end

#http_ssl_timeoutObject

Returns the value of attribute http_ssl_timeout.



15
16
17
# File 'lib/convoy/convoy_configuration.rb', line 15

def http_ssl_timeout
  @http_ssl_timeout
end

#log_levelObject

Returns the value of attribute log_level.



10
11
12
# File 'lib/convoy/convoy_configuration.rb', line 10

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/convoy/convoy_configuration.rb', line 9

def logger
  @logger
end

#path_versionObject

Returns the value of attribute path_version.



8
9
10
# File 'lib/convoy/convoy_configuration.rb', line 8

def path_version
  @path_version
end

#project_idObject

Returns the value of attribute project_id.



11
12
13
# File 'lib/convoy/convoy_configuration.rb', line 11

def project_id
  @project_id
end

#sslObject

Returns the value of attribute ssl.



4
5
6
# File 'lib/convoy/convoy_configuration.rb', line 4

def ssl
  @ssl
end