Class: Cucumber::Messages::UndefinedParameterType

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(expression: '', name: '') ⇒ UndefinedParameterType

Returns a new instance of UndefinedParameterType.



1878
1879
1880
1881
1882
1883
1884
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1878

def initialize(
  expression: '',
  name: ''
)
  @expression = expression
  @name = name
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



1874
1875
1876
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1874

def expression
  @expression
end

#nameObject (readonly)

Returns the value of attribute name.



1876
1877
1878
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1876

def name
  @name
end

Class Method Details

.from_h(hash) ⇒ Object

Returns a new UndefinedParameterType from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.

Cucumber::Messages::UndefinedParameterType.from_h(some_hash) # => #<Cucumber::Messages::UndefinedParameterType:0x... ...>


1171
1172
1173
1174
1175
1176
1177
1178
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 1171

def self.from_h(hash)
  return nil if hash.nil?

  self.new(
    expression: hash[:expression],
    name: hash[:name],
  )
end