module MidasClient::EndPoints
Constants
- DEVELOPMENT
- MANAGEMENTS
- OPERATIONS
- PRODUCTION
- QUERIES
- SUBSCRIPTIONS
Public Instance Methods
get_env()
click to toggle source
alias for get_environment
# File lib/midas_client/endpoints.rb, line 22 def get_env self.production? ? EndPoints::PRODUCTION : EndPoints::DEVELOPMENT end
get_environment()
click to toggle source
# File lib/midas_client/endpoints.rb, line 17 def get_environment get_env end
production?()
click to toggle source
# File lib/midas_client/endpoints.rb, line 4 def production? if !self.environment.blank? self.environment.upcase == 'PRODUCTION' else (ENV['RACK_ENV'].upcase == 'PRODUCTION') || ENV['PRODUCTION'] || ENV['production'] end end
set_env(e)
click to toggle source
alias for set_environment
# File lib/midas_client/endpoints.rb, line 13 def set_env(e) self.environment=e end