dblock/slack-gamebot

View on GitHub
slack-gamebot/service.rb

Summary

Maintainability
A
0 mins
Test Coverage
module SlackRubyBotServer
  class Service
    def self.url
      ENV.fetch('URL') { (ENV['RACK_ENV'] == 'development' ? 'http://localhost:5000' : 'https://www.playplay.io') }
    end

    def self.api_url
      ENV.fetch('API_URL') { "#{url}/api" }
    end
  end
end