Class: Cucumber::Messages::JavaStackTraceElement
- 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
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new JavaStackTraceElement from the given hash.
Instance Method Summary collapse
-
#initialize(class_name: '', file_name: '', method_name: '') ⇒ JavaStackTraceElement
constructor
A new instance of JavaStackTraceElement.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(class_name: '', file_name: '', method_name: '') ⇒ JavaStackTraceElement
Returns a new instance of JavaStackTraceElement.
1409 1410 1411 1412 1413 1414 1415 1416 1417 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1409 def initialize( class_name: '', file_name: '', method_name: '' ) @class_name = class_name @file_name = file_name @method_name = method_name end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
1403 1404 1405 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1403 def class_name @class_name end |
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
1405 1406 1407 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1405 def file_name @file_name end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
1407 1408 1409 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1407 def method_name @method_name end |
Class Method Details
.from_h(hash) ⇒ Object
Returns a new JavaStackTraceElement from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::JavaStackTraceElement.from_h(some_hash) # => #<Cucumber::Messages::JavaStackTraceElement:0x... ...>
838 839 840 841 842 843 844 845 846 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 838 def self.from_h(hash) return nil if hash.nil? self.new( class_name: hash[:className], file_name: hash[:fileName], method_name: hash[:methodName], ) end |