class Copyleaks::Batch
Attributes
Public Class Methods
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Batch.rb, line 26 def initialize(tags:, **options) unless tags.is_a?(Array) && tags.all? { |tag| tag.is_a?(Tags) } raise 'Copyleaks::Batch - tags must be an Array of Tags' end super(**options) # Pass any other options to SharedResultsModel @tags = tags end
@param [Array<Tags>] tags - Tags
object array
Calls superclass method
Public Instance Methods
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Batch.rb, line 36 def as_json(*_args) { tags: @tags } end
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Batch.rb, line 42 def to_json(*options) as_json(*options).to_json(*options) end