Sha256: 49595671c795118dd58b643851820fbe013fac006a2d0e71f41aa28192b14a42

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

require 'active_support/all'
require_relative 'esp_sdk/version'
require_relative 'esp_sdk/configure'
require_relative 'esp_sdk/client'
require_relative 'esp_sdk/end_points/base'
require_relative 'esp_sdk/end_points/reports'
require_relative 'esp_sdk/end_points/users'
require_relative 'esp_sdk/end_points/external_accounts'
require_relative 'esp_sdk/end_points/custom_signatures'
require_relative 'esp_sdk/end_points/organizations'
require_relative 'esp_sdk/end_points/sub_organizations'
require_relative 'esp_sdk/end_points/teams'
require_relative 'esp_sdk/end_points/signatures'
require_relative 'esp_sdk/end_points/dashboard'
require_relative 'esp_sdk/end_points/contact_requests'
require_relative 'esp_sdk/end_points/services'
require_relative 'esp_sdk/api'
require_relative 'esp_sdk/exceptions'

module EspSdk
  # Default environment is production
  def self.env
    @env ||= (ENV['ESP_ENV'] || ENV['RAILS_ENV'] || :production).to_sym
  end

  # Production environment query method
  def self.production?
    env == :production
  end

  # Release environment query method
  def self.release?
    env == :release
  end

  # Development environment query method
  def self.development?
    env == :development
  end

  # Test environment query method
  def self.test?
    env == :test
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
esp_sdk-1.0.5 lib/esp_sdk.rb
esp_sdk-1.0.4 lib/esp_sdk.rb
esp_sdk-1.0.3 lib/esp_sdk.rb
esp_sdk-1.0.2 lib/esp_sdk.rb
esp_sdk-1.0.1 lib/esp_sdk.rb
esp_sdk-1.0.0 lib/esp_sdk.rb