Class: Sherpa::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/sherpa/config.rb

Class Method Summary collapse

Class Method Details

.api_tokenObject



10
11
12
# File 'lib/sherpa/config.rb', line 10

def api_token
  config[:api_token]
end

.api_uriObject



14
15
16
# File 'lib/sherpa/config.rb', line 14

def api_uri
  ENV.fetch("SHERPA_API_URI", "http://sherpa.procoretech.com")
end

.setup?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/sherpa/config.rb', line 6

def setup?
  !api_token.nil? && !api_uri.nil?
end