Class: Cucumber::Messages::Envelope
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb
Overview
Represents the Envelope message in Cucumber’s message protocol.
When removing a field, replace it with reserved, rather than deleting the line.
When adding a field, add it to the end and increment the number by one.
See https://developers.google.com/protocol-buffers/docs/proto#updating for details
*
All the messages that are passed between different components/processes are Envelope
messages.
Instance Attribute Summary collapse
-
#attachment ⇒ Object
readonly
Returns the value of attribute attachment.
-
#gherkin_document ⇒ Object
readonly
Returns the value of attribute gherkin_document.
-
#hook ⇒ Object
readonly
Returns the value of attribute hook.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#parameter_type ⇒ Object
readonly
Returns the value of attribute parameter_type.
-
#parse_error ⇒ Object
readonly
Returns the value of attribute parse_error.
-
#pickle ⇒ Object
readonly
Returns the value of attribute pickle.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#step_definition ⇒ Object
readonly
Returns the value of attribute step_definition.
-
#test_case ⇒ Object
readonly
Returns the value of attribute test_case.
-
#test_case_finished ⇒ Object
readonly
Returns the value of attribute test_case_finished.
-
#test_case_started ⇒ Object
readonly
Returns the value of attribute test_case_started.
-
#test_run_finished ⇒ Object
readonly
Returns the value of attribute test_run_finished.
-
#test_run_started ⇒ Object
readonly
Returns the value of attribute test_run_started.
-
#test_step_finished ⇒ Object
readonly
Returns the value of attribute test_step_finished.
-
#test_step_started ⇒ Object
readonly
Returns the value of attribute test_step_started.
-
#undefined_parameter_type ⇒ Object
readonly
Returns the value of attribute undefined_parameter_type.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new Envelope from the given hash.
Instance Method Summary collapse
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(attachment: nil, gherkin_document: nil, hook: nil, meta: nil, parameter_type: nil, parse_error: nil, pickle: nil, source: nil, step_definition: nil, test_case: nil, test_case_finished: nil, test_case_started: nil, test_run_finished: nil, test_run_started: nil, test_step_finished: nil, test_step_started: nil, undefined_parameter_type: nil) ⇒ Envelope
Returns a new instance of Envelope.
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 186 def initialize( attachment: nil, gherkin_document: nil, hook: nil, meta: nil, parameter_type: nil, parse_error: nil, pickle: nil, source: nil, step_definition: nil, test_case: nil, test_case_finished: nil, test_case_started: nil, test_run_finished: nil, test_run_started: nil, test_step_finished: nil, test_step_started: nil, undefined_parameter_type: nil ) @attachment = @gherkin_document = gherkin_document @hook = hook @meta = @parameter_type = parameter_type @parse_error = parse_error @pickle = pickle @source = source @step_definition = step_definition @test_case = test_case @test_case_finished = test_case_finished @test_case_started = test_case_started @test_run_finished = test_run_finished @test_run_started = test_run_started @test_step_finished = test_step_finished @test_step_started = test_step_started @undefined_parameter_type = undefined_parameter_type end |
Instance Attribute Details
#attachment ⇒ Object (readonly)
Returns the value of attribute attachment.
152 153 154 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 152 def @attachment end |
#gherkin_document ⇒ Object (readonly)
Returns the value of attribute gherkin_document.
154 155 156 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 154 def gherkin_document @gherkin_document end |
#hook ⇒ Object (readonly)
Returns the value of attribute hook.
156 157 158 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 156 def hook @hook end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
158 159 160 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 158 def @meta end |
#parameter_type ⇒ Object (readonly)
Returns the value of attribute parameter_type.
160 161 162 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 160 def parameter_type @parameter_type end |
#parse_error ⇒ Object (readonly)
Returns the value of attribute parse_error.
162 163 164 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 162 def parse_error @parse_error end |
#pickle ⇒ Object (readonly)
Returns the value of attribute pickle.
164 165 166 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 164 def pickle @pickle end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
166 167 168 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 166 def source @source end |
#step_definition ⇒ Object (readonly)
Returns the value of attribute step_definition.
168 169 170 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 168 def step_definition @step_definition end |
#test_case ⇒ Object (readonly)
Returns the value of attribute test_case.
170 171 172 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 170 def test_case @test_case end |
#test_case_finished ⇒ Object (readonly)
Returns the value of attribute test_case_finished.
172 173 174 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 172 def test_case_finished @test_case_finished end |
#test_case_started ⇒ Object (readonly)
Returns the value of attribute test_case_started.
174 175 176 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 174 def test_case_started @test_case_started end |
#test_run_finished ⇒ Object (readonly)
Returns the value of attribute test_run_finished.
176 177 178 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 176 def test_run_finished @test_run_finished end |
#test_run_started ⇒ Object (readonly)
Returns the value of attribute test_run_started.
178 179 180 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 178 def test_run_started @test_run_started end |
#test_step_finished ⇒ Object (readonly)
Returns the value of attribute test_step_finished.
180 181 182 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 180 def test_step_finished @test_step_finished end |
#test_step_started ⇒ Object (readonly)
Returns the value of attribute test_step_started.
182 183 184 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 182 def test_step_started @test_step_started end |
#undefined_parameter_type ⇒ Object (readonly)
Returns the value of attribute undefined_parameter_type.
184 185 186 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 184 def undefined_parameter_type @undefined_parameter_type end |
Class Method Details
.from_h(hash) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 66 def self.from_h(hash) return nil if hash.nil? self.new( attachment: Attachment.from_h(hash[:attachment]), gherkin_document: GherkinDocument.from_h(hash[:gherkinDocument]), hook: Hook.from_h(hash[:hook]), meta: Meta.from_h(hash[:meta]), parameter_type: ParameterType.from_h(hash[:parameterType]), parse_error: ParseError.from_h(hash[:parseError]), pickle: Pickle.from_h(hash[:pickle]), source: Source.from_h(hash[:source]), step_definition: StepDefinition.from_h(hash[:stepDefinition]), test_case: TestCase.from_h(hash[:testCase]), test_case_finished: TestCaseFinished.from_h(hash[:testCaseFinished]), test_case_started: TestCaseStarted.from_h(hash[:testCaseStarted]), test_run_finished: TestRunFinished.from_h(hash[:testRunFinished]), test_run_started: TestRunStarted.from_h(hash[:testRunStarted]), test_step_finished: TestStepFinished.from_h(hash[:testStepFinished]), test_step_started: TestStepStarted.from_h(hash[:testStepStarted]), undefined_parameter_type: UndefinedParameterType.from_h(hash[:undefinedParameterType]), ) end |