class Cucumber::Messages::Tag
#
A tag
#
Represents the Tag message in Cucumber’s message protocol.
#
def self.from_h(hash)
Cucumber::Messages::Tag.from_h(some_hash) # => #
corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new Tag from the given hash.
#
def self.from_h(hash) return nil if hash.nil? new( location: Location.from_h(hash[:location]), name: hash[:name], id: hash[:id] ) end
def initialize(
def initialize( location: Location.new, name: '', id: '' ) @location = location @name = name @id = id super() end