Class: Copyleaks::Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_uriObject



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_uriObject



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_agentObject



51
52
53
# File 'lib/copyleaks/app.config.rb', line 51

def self.user_agent
  @@user_agent
end