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/pickle_tag.rb, line 37 def self.from_h(hash) return nil if hash.nil? new( name: hash[:name], ast_node_id: hash[:astNodeId] ) end
new( name: '', ast_node_id: '' )
click to toggle source
Calls superclass method
# File lib/cucumber/messages/pickle_tag.rb, line 21 def initialize( name: '', ast_node_id: '' ) @name = name @ast_node_id = ast_node_id super() end