class Cucumber::Messages::SourceReference
def self.from_h(hash)
Cucumber::Messages::SourceReference.from_h(some_hash) # => #
corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new SourceReference from the given hash.
#
def self.from_h(hash) return nil if hash.nil? new( uri: hash[:uri], java_method: JavaMethod.from_h(hash[:javaMethod]), java_stack_trace_element: JavaStackTraceElement.from_h(hash[:javaStackTraceElement]), location: Location.from_h(hash[:location]) ) end