class Cucumber::Messages::DocString
#
#
Represents the DocString message in Cucumber’s message protocol.
#
def self.from_h(hash)
Cucumber::Messages::DocString.from_h(some_hash) # => #
corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new DocString from the given hash.
#
def self.from_h(hash) return nil if hash.nil? new( location: Location.from_h(hash[:location]), media_type: hash[:mediaType], content: hash[:content], delimiter: hash[:delimiter] ) end
def initialize(
def initialize( location: Location.new, media_type: nil, content: '', delimiter: '' ) @location = location @media_type = media_type @content = content @delimiter = delimiter super() end