Class: Upkeep::Capture::RequestResult
- Inherits:
-
Data
- Object
- Data
- Upkeep::Capture::RequestResult
- Defined in:
- lib/upkeep/capture/request.rb
Instance Attribute Summary collapse
-
#action_result ⇒ Object
readonly
Returns the value of attribute action_result.
-
#counters ⇒ Object
readonly
Returns the value of attribute counters.
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#recorder ⇒ Object
readonly
Returns the value of attribute recorder.
-
#response_content_type ⇒ Object
readonly
Returns the value of attribute response_content_type.
-
#response_media_type ⇒ Object
readonly
Returns the value of attribute response_media_type.
-
#response_status ⇒ Object
readonly
Returns the value of attribute response_status.
-
#response_successful ⇒ Object
readonly
Returns the value of attribute response_successful.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
-
#timings ⇒ Object
readonly
Returns the value of attribute timings.
Instance Method Summary collapse
Instance Attribute Details
#action_result ⇒ Object (readonly)
Returns the value of attribute action_result
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def action_result @action_result end |
#counters ⇒ Object (readonly)
Returns the value of attribute counters
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def counters @counters end |
#html ⇒ Object (readonly)
Returns the value of attribute html
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def html @html end |
#recorder ⇒ Object (readonly)
Returns the value of attribute recorder
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def recorder @recorder end |
#response_content_type ⇒ Object (readonly)
Returns the value of attribute response_content_type
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def response_content_type @response_content_type end |
#response_media_type ⇒ Object (readonly)
Returns the value of attribute response_media_type
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def response_media_type @response_media_type end |
#response_status ⇒ Object (readonly)
Returns the value of attribute response_status
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def response_status @response_status end |
#response_successful ⇒ Object (readonly)
Returns the value of attribute response_successful
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def response_successful @response_successful end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def signature @signature end |
#timings ⇒ Object (readonly)
Returns the value of attribute timings
7 8 9 |
# File 'lib/upkeep/capture/request.rb', line 7 def timings @timings end |
Instance Method Details
#html_response? ⇒ Boolean
23 24 25 26 |
# File 'lib/upkeep/capture/request.rb', line 23 def html_response? response_media_type == "text/html" || response_content_type.to_s.start_with?("text/html") end |
#successful? ⇒ Boolean
19 20 21 |
# File 'lib/upkeep/capture/request.rb', line 19 def successful? !!response_successful end |