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/pickle_tag.rb, line 36 def self.from_h(hash) return nil if hash.nil? 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/pickle_tag.rb, line 20 def initialize( name: '', ast_node_id: '' ) @name = name @ast_node_id = ast_node_id super() end
Calls superclass method