class Copyleaks::Task
Attributes
Public Class Methods
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ExportModels/Task.rb, line 27 def initialize(endpoint:, isHealthy:, httpStatusCode:) raise 'Copyleaks::Task - endpoint must be a String' unless endpoint.is_a?(String) raise 'Copyleaks::Task - isHealthy must be a Boolean' unless [true, false].include?(isHealthy) raise 'Copyleaks::Task - httpStatusCode must be an Integer' unless httpStatusCode.is_a?(Integer) @endpoint = endpoint @isHealthy = isHealthy @httpStatusCode = httpStatusCode end
@param [String] endpoint - The endpoint address of the export task. @param [Boolean] isHealthy - This flag gives an indication whether the scan was completed without internal errors on the Copyleaks
side. @param [Integer] httpStatusCode - The status code reported by the customer servers. If the tasks.isHealthy is equal to false - this field will be null.
Public Instance Methods
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ExportModels/Task.rb, line 37 def as_json(*_args) { endpoint: @endpoint, isHealthy: @isHealthy, httpStatusCode: @httpStatusCode } end
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ExportModels/Task.rb, line 45 def to_json(*options) as_json(*options).to_json(*options) end