Module: Paraxial::Helpers

Defined in:
lib/paraxial/helpers.rb

Class Method Summary collapse

Class Method Details

.get_abr_urlObject



19
20
21
# File 'lib/paraxial/helpers.rb', line 19

def self.get_abr_url
  get_paraxial_url + '/api/abr'
end

.get_api_keyObject



35
36
37
# File 'lib/paraxial/helpers.rb', line 35

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

.get_ban_urlObject



7
8
9
# File 'lib/paraxial/helpers.rb', line 7

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

.get_exploit_urlObject



11
12
13
# File 'lib/paraxial/helpers.rb', line 11

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

.get_free_tier_urlObject



15
16
17
# File 'lib/paraxial/helpers.rb', line 15

def self.get_free_tier_url
  get_paraxial_url + '/api/free_tier'
end

.get_honeypot_urlObject



27
28
29
# File 'lib/paraxial/helpers.rb', line 27

def self.get_honeypot_url
  get_paraxial_url + '/api/honeypot_ban_x'
end

.get_ingest_urlObject



23
24
25
# File 'lib/paraxial/helpers.rb', line 23

def self.get_ingest_url
  get_paraxial_url + '/api/ingest'
end

.get_paraxial_urlObject



3
4
5
# File 'lib/paraxial/helpers.rb', line 3

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

.get_ruby_ban_urlObject



31
32
33
# File 'lib/paraxial/helpers.rb', line 31

def self.get_ruby_ban_url
  get_paraxial_url + '/api/ruby_ban_x'
end