Class: Copyleaks::Tags

Inherits:
Object
  • Object
show all
Defined in:
lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Tags.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code: nil, title: nil, description: nil) ⇒ Tags

Returns a new instance of Tags.

Parameters:

  • $code (string)
    • Unique ID that signifies the type of result tag.

  • $description (string)
    • Short text describing this tag.

  • $title (string)
    • A simple name for this tag.



27
28
29
30
31
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Tags.rb', line 27

def initialize(code: nil, title: nil, description: nil)
  @code = code
  @title = title
  @description = description
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



22
23
24
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Tags.rb', line 22

def code
  @code
end

#descriptionObject (readonly)

Returns the value of attribute description.



22
23
24
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Tags.rb', line 22

def description
  @description
end

#titleObject (readonly)

Returns the value of attribute title.



22
23
24
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/Tags.rb', line 22

def title
  @title
end