Sha256: 0e90e34fd43916d365fa4284bf6a63dfe692e2ad49473b5e2f097d81fbc0cba0

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

module Paraxial
  module Helpers
    def self.get_paraxial_url
      @paraxial_url ||= ENV['PARAXIAL_URL'] || 'https://app.paraxial.io/'
    end

    def self.get_ban_url
      get_paraxial_url + '/api/ban_ip'
    end

    def self.get_exploit_url
      get_paraxial_url + '/api/exploit'
    end

    def self.get_api_key
      @paraxial_api_key ||= ENV['PARAXIAL_API_KEY']
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
paraxial-0.8.0 lib/paraxial/helpers.rb
paraxial-0.7.0 lib/paraxial/helpers.rb
paraxial-0.6.0 lib/paraxial/helpers.rb
paraxial-0.5.0 lib/paraxial/helpers.rb