Class: Cucumber::Messages::StepMatchArgumentsList
- 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
Instance Attribute Summary collapse
-
#step_match_arguments ⇒ Object
readonly
Returns the value of attribute step_match_arguments.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new StepMatchArgumentsList from the given hash.
Instance Method Summary collapse
-
#initialize(step_match_arguments: []) ⇒ StepMatchArgumentsList
constructor
A new instance of StepMatchArgumentsList.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(step_match_arguments: []) ⇒ StepMatchArgumentsList
Returns a new instance of StepMatchArgumentsList.
1570 1571 1572 1573 1574 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1570 def initialize( step_match_arguments: [] ) @step_match_arguments = step_match_arguments end |
Instance Attribute Details
#step_match_arguments ⇒ Object (readonly)
Returns the value of attribute step_match_arguments.
1568 1569 1570 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1568 def step_match_arguments @step_match_arguments end |
Class Method Details
.from_h(hash) ⇒ Object
Returns a new StepMatchArgumentsList from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::StepMatchArgumentsList.from_h(some_hash) # => #<Cucumber::Messages::StepMatchArgumentsList:0x... ...>
962 963 964 965 966 967 968 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 962 def self.from_h(hash) return nil if hash.nil? self.new( step_match_arguments: hash[:stepMatchArguments]&.map { |item| StepMatchArgument.from_h(item) }, ) end |