Class: ConnectClient::Configuration
- Inherits:
-
Object
- Object
- ConnectClient::Configuration
- Defined in:
- lib/connect_client/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#async ⇒ Object
Returns the value of attribute async.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize(api_key = '', project_id = '', async = false, base_url = 'https://api.getconnect.io') ⇒ Configuration
constructor
A new instance of Configuration.
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_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/connect_client/configuration.rb', line 3 def api_key @api_key end |
#async ⇒ Object
Returns the value of attribute async.
3 4 5 |
# File 'lib/connect_client/configuration.rb', line 3 def async @async end |
#base_url ⇒ Object
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_id ⇒ Object
Returns the value of attribute project_id.
3 4 5 |
# File 'lib/connect_client/configuration.rb', line 3 def project_id @project_id end |