class Cucumber::Messages::PickleTag

Represents the PickleTag message in Cucumber's message protocol.

*

A tag

Attributes

ast_node_id[R]

Points to the AST node this was created from

name[R]

Public Class Methods

from_h(hash) click to toggle source

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... ...>
# 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
new( name: '', ast_node_id: '' ) click to toggle source
# File lib/cucumber/messages.dtos.rb, line 1284
def initialize(
  name: '',
  ast_node_id: ''
)
  @name = name
  @ast_node_id = ast_node_id
end