Class: Cucumber::Messages::DocString
- 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
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#delimiter ⇒ Object
readonly
Returns the value of attribute delimiter.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#media_type ⇒ Object
readonly
Returns the value of attribute media_type.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new DocString from the given hash.
Instance Method Summary collapse
-
#initialize(location: Location.new, media_type: nil, content: '', delimiter: '') ⇒ DocString
constructor
A new instance of DocString.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(location: Location.new, media_type: nil, content: '', delimiter: '') ⇒ DocString
Returns a new instance of DocString.
374 375 376 377 378 379 380 381 382 383 384 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 374 def initialize( location: Location.new, media_type: nil, content: '', delimiter: '' ) @location = location @media_type = media_type @content = content @delimiter = delimiter end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
370 371 372 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 370 def content @content end |
#delimiter ⇒ Object (readonly)
Returns the value of attribute delimiter.
372 373 374 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 372 def delimiter @delimiter end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
366 367 368 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 366 def location @location end |
#media_type ⇒ Object (readonly)
Returns the value of attribute media_type.
368 369 370 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 368 def media_type @media_type end |
Class Method Details
.from_h(hash) ⇒ Object
186 187 188 189 190 191 192 193 194 195 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 186 def self.from_h(hash) return nil if hash.nil? self.new( location: Location.from_h(hash[:location]), media_type: hash[:mediaType], content: hash[:content], delimiter: hash[:delimiter], ) end |