class Cucumber::Messages::Ci
Represents the Ci
message in Cucumber’s message protocol.
CI environment
Attributes
The build number. Some CI servers use non-numeric build numbers, which is why this is a string
Name of the CI product, e.g. “Jenkins”, “CircleCI” etc.
Link to the build
Public Class Methods
Source
# File lib/cucumber/messages.deserializers.rb, line 502 def self.from_h(hash) return nil if hash.nil? self.new( name: hash[:name], url: hash[:url], build_number: hash[:buildNumber], git: Git.from_h(hash[:git]), ) end
Returns a new Ci
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::Ci.from_h(some_hash) # => #<Cucumber::Messages::Ci:0x... ...>
Source
# File lib/cucumber/messages.dtos.rb, line 917 def initialize( name: '', url: nil, build_number: nil, git: nil ) @name = name @url = url @build_number = build_number @git = git end