class Cucumber::Messages::PickleDocString
Represents the PickleDocString message in Cucumberโs message protocol.
Attributes
Public Class Methods
Source
# File lib/cucumber/messages/pickle_doc_string.rb, line 35 def self.from_h(hash) return nil if hash.nil? new( argument_index: hash[:argumentIndex], media_type: hash[:mediaType], content: hash[:content] ) end
Returns a new PickleDocString from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::PickleDocString.from_h(some_hash) # => #<Cucumber::Messages::PickleDocString:0x... ...>
Source
# File lib/cucumber/messages/pickle_doc_string.rb, line 17 def initialize( argument_index: nil, media_type: nil, content: '' ) @argument_index = argument_index @media_type = media_type @content = content super() end
Calls superclass method