Class: Kashi::DSL::Test
- Inherits:
-
Object
- Object
- Kashi::DSL::Test
- Defined in:
- lib/kashi/dsl/test.rb
Defined Under Namespace
Classes: Result
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, test_id, &block) ⇒ Test
constructor
A new instance of Test.
Constructor Details
#initialize(context, test_id, &block) ⇒ Test
Returns a new instance of Test.
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/kashi/dsl/test.rb', line 134 def initialize(context, test_id, &block) @context = context.merge(test_id: test_id) @result = Result.new(@context) @result.test_id = test_id # default values @result.paused = 0 @result.timeout = 30 @result.confirmation = 0 @result.check_rate = 300 # @result.public = 0 # @result.use_jar = 0 # @result.branding = 0 @result.do_not_find = 0 # @result.real_browser = 0 @result.trigger_rate = 5 @result.enable_ssl_warning = 1 @result.follow_redirect = 1 @result. = [] @result.node_locations = [''] @result.status_codes = [] @result.virus = '' # not used @result.post_raw = '' @result.final_endpoint = '' instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
132 133 134 |
# File 'lib/kashi/dsl/test.rb', line 132 def result @result end |