class Copyleaks::Internet
Attributes
Public Class Methods
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Internet.rb, line 25 def initialize(tags:, **options) unless tags.is_a?(Array) && tags.all? { |tag| tag.is_a?(Tags) } raise 'Copyleaks::Internet - tags must be an Array of Tags' end super(**options) # Initialize parent class with other params @tags = tags end
@param [Array<Tags>] tags - Tags
object array
Calls superclass method
Copyleaks::NewResultsInternet::new
Public Instance Methods
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Internet.rb, line 34 def as_json(*_args) super.merge(tags: @tags) end
Calls superclass method
Copyleaks::NewResultsInternet#as_json
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Internet.rb, line 38 def to_json(*options) as_json(*options).to_json(*options) end