Class: Copyleaks::SharedResultsModel
- Inherits:
-
Object
- Object
- Copyleaks::SharedResultsModel
- Defined in:
- lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/SharedResultsModel.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#introduction ⇒ Object
readonly
Returns the value of attribute introduction.
-
#matchedWords ⇒ Object
readonly
Returns the value of attribute matchedWords.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#scanId ⇒ Object
readonly
Returns the value of attribute scanId.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(id: nil, title: nil, introduction: nil, matchedWords: nil, scanId: nil, metadata: nil) ⇒ SharedResultsModel
constructor
A new instance of SharedResultsModel.
Constructor Details
#initialize(id: nil, title: nil, introduction: nil, matchedWords: nil, scanId: nil, metadata: nil) ⇒ SharedResultsModel
Returns a new instance of SharedResultsModel.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/SharedResultsModel.rb', line 30 def initialize( id: nil, title: nil, introduction: nil, matchedWords: nil, scanId: nil, metadata: nil ) @id = id @title = title @introduction = introduction @matchedWords = matchedWords @scanId = scanId @metadata = end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
22 23 24 |
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/SharedResultsModel.rb', line 22 def id @id end |
#introduction ⇒ Object (readonly)
Returns the value of attribute introduction.
22 23 24 |
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/SharedResultsModel.rb', line 22 def introduction @introduction end |
#matchedWords ⇒ Object (readonly)
Returns the value of attribute matchedWords.
22 23 24 |
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/SharedResultsModel.rb', line 22 def matchedWords @matchedWords end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
22 23 24 |
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/SharedResultsModel.rb', line 22 def @metadata end |
#scanId ⇒ Object (readonly)
Returns the value of attribute scanId.
22 23 24 |
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/SharedResultsModel.rb', line 22 def scanId @scanId end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
22 23 24 |
# File 'lib/copyleaks/models/submissions/webhooks/HelperModels/ResultsModels/SharedResultsModel.rb', line 22 def title @title end |