Class: UseParagon::Configuration

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

Overview

Allows configuration using an initializer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
# File 'lib/use_paragon/configuration.rb', line 8

def initialize
  @base_url = "https://zeus.useparagon.com"
  @logger = Logger.new(STDOUT)
  @logger_enabled = true
end

Instance Attribute Details

#base_urlObject

Returns the value of attribute base_url.



6
7
8
# File 'lib/use_paragon/configuration.rb', line 6

def base_url
  @base_url
end

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/use_paragon/configuration.rb', line 6

def logger
  @logger
end

#logger_enabledObject

Returns the value of attribute logger_enabled.



6
7
8
# File 'lib/use_paragon/configuration.rb', line 6

def logger_enabled
  @logger_enabled
end

#private_keyObject

Returns the value of attribute private_key.



6
7
8
# File 'lib/use_paragon/configuration.rb', line 6

def private_key
  @private_key
end

#project_idObject

Returns the value of attribute project_id.



6
7
8
# File 'lib/use_paragon/configuration.rb', line 6

def project_id
  @project_id
end