Class: PQSDK::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/pqsdk/settings.rb

Overview

The Settings class contains the configuration for the library.

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.app_secretObject

Returns the value of attribute app_secret.



5
6
7
# File 'lib/pqsdk/settings.rb', line 5

def app_secret
  @app_secret
end

.hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/pqsdk/settings.rb', line 5

def host
  @host
end

.schemaObject

Returns the value of attribute schema.



5
6
7
# File 'lib/pqsdk/settings.rb', line 5

def schema
  @schema
end

Class Method Details

.api_rootObject



17
18
19
# File 'lib/pqsdk/settings.rb', line 17

def self.api_root
  "#{schema}://#{host}"
end