Class: ConnectClient::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key = '', project_id = '', async = false, base_url = 'https://api.getconnect.io') ⇒ Configuration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/connect_client/configuration.rb', line 5

def initialize(api_key = '', project_id = '', async = false, base_url = 'https://api.getconnect.io')
  @base_url = base_url
  @api_key = api_key
  @project_id = project_id
  @async = async
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#asyncObject

Returns the value of attribute async.



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

def async
  @async
end

#base_urlObject

Returns the value of attribute base_url.



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

def base_url
  @base_url
end

#project_idObject

Returns the value of attribute project_id.



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

def project_id
  @project_id
end