class Copyleaks::StatusWebhook
Attributes
@param [Integer] status - The current status of the scan.
Public Class Methods
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/BaseModels/StatusWebhook.rb, line 24 def initialize(status:, **args) unless status.is_a?(Integer) raise 'Copyleaks::StatusWebhook - status must be an Integer' end super(**args) @status = status end
Calls superclass method
Public Instance Methods
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/BaseModels/StatusWebhook.rb, line 32 def as_json(*_args) { status: @status }.merge(super) end
Calls superclass method
Source
# File lib/copyleaks/models/submissions/webhooks/HelperModels/BaseModels/StatusWebhook.rb, line 38 def to_json(*options) as_json.to_json(*options) end