Class: Copyleaks::Config
- Inherits:
-
Object
- Object
- Copyleaks::Config
- Defined in:
- lib/copyleaks/app.config.rb
Constant Summary collapse
- @@identity_server_uri =
'https://id.copyleaks.com'
- @@api_server_uri =
'https://api.copyleaks.com'
- @@user_agent =
'ruby-sdk/3.0'
Class Method Summary collapse
- .api_server_uri ⇒ Object
- .api_server_uri=(uri) ⇒ Object
- .identity_server_uri ⇒ Object
- .identity_server_uri=(uri) ⇒ Object
- .user_agent ⇒ Object
Instance Method Summary collapse
-
#initialize(identity_server_uri, api_server_uri) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(identity_server_uri, api_server_uri) ⇒ Config
Returns a new instance of Config.
30 31 32 33 |
# File 'lib/copyleaks/app.config.rb', line 30 def initialize(identity_server_uri, api_server_uri) @@identity_server_uri = identity_server_uri @@api_server_uri = api_server_uri end |
Class Method Details
.api_server_uri ⇒ Object
39 40 41 |
# File 'lib/copyleaks/app.config.rb', line 39 def self.api_server_uri @@api_server_uri end |
.api_server_uri=(uri) ⇒ Object
47 48 49 |
# File 'lib/copyleaks/app.config.rb', line 47 def self.api_server_uri=(uri) @@api_server_uri = uri end |
.identity_server_uri ⇒ Object
35 36 37 |
# File 'lib/copyleaks/app.config.rb', line 35 def self.identity_server_uri @@identity_server_uri end |
.identity_server_uri=(uri) ⇒ Object
43 44 45 |
# File 'lib/copyleaks/app.config.rb', line 43 def self.identity_server_uri=(uri) @@identity_server_uri = uri end |
.user_agent ⇒ Object
51 52 53 |
# File 'lib/copyleaks/app.config.rb', line 51 def self.user_agent @@user_agent end |