class Cucumber::Messages::DocString
Attributes
content[R]
delimiter[R]
location[R]
media_type[R]
Public Class Methods
from_h(hash)
click to toggle source
Returns a new DocString
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::DocString.from_h(some_hash) # => #<Cucumber::Messages::DocString:0x... ...>
# File lib/cucumber/messages.deserializers.rb, line 206 def self.from_h(hash) return nil if hash.nil? self.new( location: Location.from_h(hash[:location]), media_type: hash[:mediaType], content: hash[:content], delimiter: hash[:delimiter], ) end
new( location: Location.new, media_type: nil, content: '', delimiter: '' )
click to toggle source
# File lib/cucumber/messages.dtos.rb, line 402 def initialize( location: Location.new, media_type: nil, content: '', delimiter: '' ) @location = location @media_type = media_type @content = content @delimiter = delimiter end