class Cucumber::Messages::PickleTag
Represents the PickleTag
message in Cucumber’s message protocol.
*
A tag
Attributes
Points to the AST node this was created from
Public Class Methods
Source
# File lib/cucumber/messages.deserializers.rb, line 753 def self.from_h(hash) return nil if hash.nil? self.new( name: hash[:name], ast_node_id: hash[:astNodeId], ) end
Returns a new PickleTag
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::PickleTag.from_h(some_hash) # => #<Cucumber::Messages::PickleTag:0x... ...>
Source
# File lib/cucumber/messages.dtos.rb, line 1284 def initialize( name: '', ast_node_id: '' ) @name = name @ast_node_id = ast_node_id end