class Cucumber::Messages::UndefinedParameterType
Represents the UndefinedParameterType message in Cucumberโs message protocol.
Attributes
Public Class Methods
Source
# File lib/cucumber/messages/undefined_parameter_type.rb, line 31 def self.from_h(hash) return nil if hash.nil? new( expression: hash[:expression], name: hash[:name] ) end
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... ...>
Source
# File lib/cucumber/messages/undefined_parameter_type.rb, line 15 def initialize( expression: '', name: '' ) @expression = expression @name = name super() end
Calls superclass method