Class: CemAcpt::Goss::Api::ActionResponseResult
- Inherits:
-
Object
- Object
- CemAcpt::Goss::Api::ActionResponseResult
- Includes:
- DurationHandler
- Defined in:
- lib/cem_acpt/goss/api/action_response.rb
Constant Summary
Constants included from DurationHandler
DurationHandler::DURATION_UNITS
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#err ⇒ Object
(also: #error)
readonly
Returns the value of attribute err.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#found ⇒ Object
readonly
Returns the value of attribute found.
-
#human ⇒ Object
readonly
Returns the value of attribute human.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#property ⇒ Object
readonly
Returns the value of attribute property.
-
#resource_id ⇒ Object
readonly
Returns the value of attribute resource_id.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#skipped ⇒ Object
(also: #skipped?)
readonly
Returns the value of attribute skipped.
-
#successful ⇒ Object
(also: #success?)
readonly
Returns the value of attribute successful.
-
#summary_line ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute summary_line.
-
#summary_line_compact ⇒ Object
readonly
Returns the value of attribute summary_line_compact.
-
#test_type ⇒ Object
readonly
Returns the value of attribute test_type.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(raw_result) ⇒ ActionResponseResult
constructor
A new instance of ActionResponseResult.
- #to_h ⇒ Object
Constructor Details
#initialize(raw_result) ⇒ ActionResponseResult
Returns a new instance of ActionResponseResult.
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 152 def initialize(raw_result) @raw_result = raw_result @duration = @raw_result['duration'] @err = @raw_result['err'] @expected = @raw_result['expected'] @found = @raw_result['found'] @human = @raw_result['human'] @meta = @raw_result['meta'] @property = @raw_result['property'] @resource_id = @raw_result['resource-id'] @resource_type = @raw_result['resource-type'] @result = @raw_result['result'] @skipped = @raw_result['skipped'] @successful = @raw_result['successful'] @summary_line = @raw_result['summary-line'] @summary_line_compact = @raw_result['summary-line-compact'] @test_type = @raw_result['test-type'] @title = @raw_result['title'] end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def duration @duration end |
#err ⇒ Object (readonly) Also known as: error
Returns the value of attribute err.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def err @err end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def expected @expected end |
#found ⇒ Object (readonly)
Returns the value of attribute found.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def found @found end |
#human ⇒ Object (readonly)
Returns the value of attribute human.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def human @human end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def @meta end |
#property ⇒ Object (readonly)
Returns the value of attribute property.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def property @property end |
#resource_id ⇒ Object (readonly)
Returns the value of attribute resource_id.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def resource_id @resource_id end |
#resource_type ⇒ Object (readonly)
Returns the value of attribute resource_type.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def resource_type @resource_type end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def result @result end |
#skipped ⇒ Object (readonly) Also known as: skipped?
Returns the value of attribute skipped.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def skipped @skipped end |
#successful ⇒ Object (readonly) Also known as: success?
Returns the value of attribute successful.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def successful @successful end |
#summary_line ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute summary_line.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def summary_line @summary_line end |
#summary_line_compact ⇒ Object (readonly)
Returns the value of attribute summary_line_compact.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def summary_line_compact @summary_line_compact end |
#test_type ⇒ Object (readonly)
Returns the value of attribute test_type.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def test_type @test_type end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
148 149 150 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 148 def title @title end |
Instance Method Details
#error? ⇒ Boolean
180 181 182 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 180 def error? !err.nil? end |
#to_h ⇒ Object
176 177 178 |
# File 'lib/cem_acpt/goss/api/action_response.rb', line 176 def to_h @raw_result end |