Class: Cucumber::Messages::StepMatchArgumentsList

Inherits:
Message show all
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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Message::Utils

included

Methods included from Message::Serialization

#to_h, #to_json

Methods included from Message::Deserialization

included

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_argumentsObject (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