Class: ApiTester::Helper
- Inherits:
-
Object
- Object
- ApiTester::Helper
- Defined in:
- lib/api_tester/helper.rb
Class Method Summary collapse
Class Method Details
.format_json(json_string) ⇒ Object
7 8 9 |
# File 'lib/api_tester/helper.rb', line 7 def self.format_json(json_string) JSON.pretty_generate(JSON.parse(json_string)) end |
.get_token_from_env ⇒ Object
3 4 5 |
# File 'lib/api_tester/helper.rb', line 3 def self.get_token_from_env ENV['API_AUTH_TOKEN'] end |