Class: Sherpa::Config
- Inherits:
-
Object
- Object
- Sherpa::Config
- Defined in:
- lib/sherpa/config.rb
Class Method Summary collapse
Class Method Details
.api_token ⇒ Object
10 11 12 |
# File 'lib/sherpa/config.rb', line 10 def api_token config[:api_token] end |
.api_uri ⇒ Object
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
6 7 8 |
# File 'lib/sherpa/config.rb', line 6 def setup? !api_token.nil? && !api_uri.nil? end |