Class: Cucumber::Messages::UndefinedParameterType
- 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
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new UndefinedParameterType from the given hash.
Instance Method Summary collapse
-
#initialize(expression: '', name: '') ⇒ UndefinedParameterType
constructor
A new instance of UndefinedParameterType.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(expression: '', name: '') ⇒ UndefinedParameterType
Returns a new instance of UndefinedParameterType.
1878 1879 1880 1881 1882 1883 1884 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1878 def initialize( expression: '', name: '' ) @expression = expression @name = name end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
1874 1875 1876 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1874 def expression @expression end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
1876 1877 1878 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1876 def name @name end |
Class Method Details
.from_h(hash) ⇒ Object
Returns a new UndefinedParameterType from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::UndefinedParameterType.from_h(some_hash) # => #<Cucumber::Messages::UndefinedParameterType:0x... ...>
1171 1172 1173 1174 1175 1176 1177 1178 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 1171 def self.from_h(hash) return nil if hash.nil? self.new( expression: hash[:expression], name: hash[:name], ) end |