Class: InjectionReport
- Inherits:
-
Object
- Object
- InjectionReport
- Defined in:
- lib/api-tester/modules/injection_module.rb
Overview
Report for InjectionModule
Instance Attribute Summary collapse
-
#injection_type ⇒ Object
Returns the value of attribute injection_type.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#response ⇒ Object
Returns the value of attribute response.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(injection_type, url, payload, response) ⇒ InjectionReport
constructor
A new instance of InjectionReport.
- #print ⇒ Object
Constructor Details
#initialize(injection_type, url, payload, response) ⇒ InjectionReport
Returns a new instance of InjectionReport.
73 74 75 76 77 78 |
# File 'lib/api-tester/modules/injection_module.rb', line 73 def initialize(injection_type, url, payload, response) self.injection_type = injection_type self.url = url self.payload = payload self.response = response end |
Instance Attribute Details
#injection_type ⇒ Object
Returns the value of attribute injection_type.
71 72 73 |
# File 'lib/api-tester/modules/injection_module.rb', line 71 def injection_type @injection_type end |
#payload ⇒ Object
Returns the value of attribute payload.
71 72 73 |
# File 'lib/api-tester/modules/injection_module.rb', line 71 def payload @payload end |
#response ⇒ Object
Returns the value of attribute response.
71 72 73 |
# File 'lib/api-tester/modules/injection_module.rb', line 71 def response @response end |
#url ⇒ Object
Returns the value of attribute url.
71 72 73 |
# File 'lib/api-tester/modules/injection_module.rb', line 71 def url @url end |
Instance Method Details
#print ⇒ Object
80 81 82 83 84 85 86 |
# File 'lib/api-tester/modules/injection_module.rb', line 80 def print puts "Found potential #{injection_type}: " puts " Requested #{url} with payload:" puts " #{payload}" puts ' Received: ' puts " #{response}" end |