class Fitting::Report::Test
Public Class Methods
new(test)
click to toggle source
# File lib/fitting/report/test.rb, line 4 def initialize(test) @test = test @prefix = false @action = false @response = false @combination = false @id = SecureRandom.hex end
Public Instance Methods
body()
click to toggle source
# File lib/fitting/report/test.rb, line 38 def body @test['response']['body'] end
id()
click to toggle source
# File lib/fitting/report/test.rb, line 13 def id @id end
is_there_a_prefix?()
click to toggle source
# File lib/fitting/report/test.rb, line 58 def is_there_a_prefix? @prefix end
is_there_an_actions?()
click to toggle source
# File lib/fitting/report/test.rb, line 62 def is_there_an_actions? @action end
is_there_an_combinations?()
click to toggle source
# File lib/fitting/report/test.rb, line 70 def is_there_an_combinations? @combination end
is_there_an_responses?()
click to toggle source
# File lib/fitting/report/test.rb, line 66 def is_there_an_responses? @response end
mark_action()
click to toggle source
# File lib/fitting/report/test.rb, line 46 def mark_action @action = true end
mark_combination()
click to toggle source
# File lib/fitting/report/test.rb, line 54 def mark_combination @combination = true end
mark_prefix()
click to toggle source
# File lib/fitting/report/test.rb, line 42 def mark_prefix @prefix = true end
mark_response()
click to toggle source
# File lib/fitting/report/test.rb, line 50 def mark_response @response = true end
method()
click to toggle source
# File lib/fitting/report/test.rb, line 30 def method @test['method'] end
path()
click to toggle source
# File lib/fitting/report/test.rb, line 26 def path @test['path'] end
status()
click to toggle source
# File lib/fitting/report/test.rb, line 34 def status @test['response']['status'].to_s end
to_h()
click to toggle source
# File lib/fitting/report/test.rb, line 17 def to_h { path: path, method: method, status: status, body: body } end