class Cucumber::Messages::SourceReference
Represents the SourceReference
message in Cucumber’s message protocol.
*
Points to a [Source](#io.cucumber.messages.Source) identified by `uri` and a [Location](#io.cucumber.messages.Location) within that file.
Attributes
java_method[R]
java_stack_trace_element[R]
location[R]
uri[R]
Public Class Methods
from_h(hash)
click to toggle source
Returns a new SourceReference
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::SourceReference.from_h(some_hash) # => #<Cucumber::Messages::SourceReference:0x... ...>
# File lib/cucumber/messages.deserializers.rb, line 794 def self.from_h(hash) return nil if hash.nil? self.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
new( uri: nil, java_method: nil, java_stack_trace_element: nil, location: nil )
click to toggle source
# File lib/cucumber/messages.dtos.rb, line 1353 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 end