Class: TestsDoc::Interaction
- Inherits:
-
Struct
- Object
- Struct
- TestsDoc::Interaction
- Defined in:
- lib/tests_doc/interaction.rb
Instance Attribute Summary collapse
-
#example ⇒ Object
Returns the value of attribute example.
-
#options ⇒ Object
Returns the value of attribute options.
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
Instance Attribute Details
#example ⇒ Object
Returns the value of attribute example
5 6 7 |
# File 'lib/tests_doc/interaction.rb', line 5 def example @example end |
#options ⇒ Object
Returns the value of attribute options
5 6 7 |
# File 'lib/tests_doc/interaction.rb', line 5 def @options end |
#request ⇒ Object
Returns the value of attribute request
5 6 7 |
# File 'lib/tests_doc/interaction.rb', line 5 def request @request end |
#response ⇒ Object
Returns the value of attribute response
5 6 7 |
# File 'lib/tests_doc/interaction.rb', line 5 def response @response end |
Instance Method Details
#record ⇒ Object
7 8 9 10 11 |
# File 'lib/tests_doc/interaction.rb', line 7 def record return if response.code.to_s == "500" TestsDoc::File.new(file_path, output, ).write_if_changed end |