Module: Paraxial::Helpers
- Defined in:
- lib/paraxial/helpers.rb
Class Method Summary collapse
- .get_abr_url ⇒ Object
- .get_api_key ⇒ Object
- .get_ban_url ⇒ Object
- .get_exploit_url ⇒ Object
- .get_free_tier_url ⇒ Object
- .get_honeypot_url ⇒ Object
- .get_ingest_url ⇒ Object
- .get_paraxial_url ⇒ Object
- .get_ruby_ban_url ⇒ Object
Class Method Details
.get_abr_url ⇒ Object
19 20 21 |
# File 'lib/paraxial/helpers.rb', line 19 def self.get_abr_url get_paraxial_url + '/api/abr' end |
.get_api_key ⇒ Object
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_url ⇒ Object
7 8 9 |
# File 'lib/paraxial/helpers.rb', line 7 def self.get_ban_url get_paraxial_url + '/api/ban_ip' end |
.get_exploit_url ⇒ Object
11 12 13 |
# File 'lib/paraxial/helpers.rb', line 11 def self.get_exploit_url get_paraxial_url + '/api/exploit' end |
.get_free_tier_url ⇒ Object
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_url ⇒ Object
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_url ⇒ Object
23 24 25 |
# File 'lib/paraxial/helpers.rb', line 23 def self.get_ingest_url get_paraxial_url + '/api/ingest' end |
.get_paraxial_url ⇒ Object
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_url ⇒ Object
31 32 33 |
# File 'lib/paraxial/helpers.rb', line 31 def self.get_ruby_ban_url get_paraxial_url + '/api/ruby_ban_x' end |