class Cucumber::Messages::StepDefinition
def self.from_h(hash)
Cucumber::Messages::StepDefinition.from_h(some_hash) # => #
corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new StepDefinition from the given hash.
#
def self.from_h(hash) return nil if hash.nil? new( id: hash[:id], pattern: StepDefinitionPattern.from_h(hash[:pattern]), source_reference: SourceReference.from_h(hash[:sourceReference]) ) end