class Cucumber::Messages::SourceReference
#
(#io.cucumber.messages.Location) within that file.
Points to a [Source](#io.cucumber.messages.Source) identified by ‘uri` and a
*
#
Represents the SourceReference message in Cucumber’s message protocol.
#
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
def initialize(
def initialize( uri: nil, java_method: nil, java_stack_trace_element: nil, location: nil ) @uri = uri @java_method = java_method @java_stack_trace_element = java_stack_trace_element @location = location super() end