Class: Copyleaks::SubmissionPdfColors
- Inherits:
-
Object
- Object
- Copyleaks::SubmissionPdfColors
- Defined in:
- lib/copyleaks/models/submissions/properties/pdf_colors.rb
Instance Method Summary collapse
- #as_json(*_args) ⇒ Object
-
#initialize(mainStrip = nil, title = nil, identical = nil, minorChanges = nil, relatedMeaning = nil) ⇒ SubmissionPdfColors
constructor
A new instance of SubmissionPdfColors.
- #to_json(*options) ⇒ Object
Constructor Details
#initialize(mainStrip = nil, title = nil, identical = nil, minorChanges = nil, relatedMeaning = nil) ⇒ SubmissionPdfColors
Returns a new instance of SubmissionPdfColors.
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/copyleaks/models/submissions/properties/pdf_colors.rb', line 32 def initialize( mainStrip = nil, title = nil, identical = nil, minorChanges = nil, = nil ) @mainStrip = mainStrip @title = title @identical = identical @minorChanges = minorChanges @relatedMeaning = end |
Instance Method Details
#as_json(*_args) ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/copyleaks/models/submissions/properties/pdf_colors.rb', line 46 def as_json(*_args) { mainStrip: @mainStrip, title: @title, identical: @identical, minorChanges: @minorChanges, relatedMeaning: @relatedMeaning }.select { |_k, v| !v.nil? } end |
#to_json(*options) ⇒ Object
56 57 58 |
# File 'lib/copyleaks/models/submissions/properties/pdf_colors.rb', line 56 def to_json(*) as_json(*).to_json(*) end |