Class: Cucumber::Messages::Tag
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb
Overview
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Unique ID to be able to reference the Tag from PickleTag.
-
#location ⇒ Object
readonly
Location of the tag.
-
#name ⇒ Object
readonly
The name of the tag (including the leading ‘@`).
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new Tag from the given hash.
Instance Method Summary collapse
-
#initialize(location: Location.new, name: '', id: '') ⇒ Tag
constructor
A new instance of Tag.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(location: Location.new, name: '', id: '') ⇒ Tag
Returns a new instance of Tag.
775 776 777 778 779 780 781 782 783 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 775 def initialize( location: Location.new, name: '', id: '' ) @location = location @name = name @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Unique ID to be able to reference the Tag from PickleTag
773 774 775 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 773 def id @id end |
#location ⇒ Object (readonly)
Location of the tag
763 764 765 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 763 def location @location end |
#name ⇒ Object (readonly)
The name of the tag (including the leading ‘@`)
768 769 770 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 768 def name @name end |
Class Method Details
.from_h(hash) ⇒ Object
416 417 418 419 420 421 422 423 424 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 416 def self.from_h(hash) return nil if hash.nil? self.new( location: Location.from_h(hash[:location]), name: hash[:name], id: hash[:id], ) end |