Class: Glossarist::Sts::ImportResult
- Inherits:
-
Object
- Object
- Glossarist::Sts::ImportResult
- Defined in:
- lib/glossarist/sts/import_result.rb
Instance Attribute Summary collapse
-
#concepts ⇒ Object
readonly
Returns the value of attribute concepts.
-
#conflicts ⇒ Object
readonly
Returns the value of attribute conflicts.
-
#skipped_count ⇒ Object
readonly
Returns the value of attribute skipped_count.
-
#source_files ⇒ Object
readonly
Returns the value of attribute source_files.
Instance Method Summary collapse
- #conflict? ⇒ Boolean
-
#initialize(concepts:, conflicts: [], source_files: [], skipped_count: 0) ⇒ ImportResult
constructor
A new instance of ImportResult.
Constructor Details
#initialize(concepts:, conflicts: [], source_files: [], skipped_count: 0) ⇒ ImportResult
Returns a new instance of ImportResult.
11 12 13 14 15 16 17 |
# File 'lib/glossarist/sts/import_result.rb', line 11 def initialize(concepts:, conflicts: [], source_files: [], skipped_count: 0) @concepts = concepts @conflicts = conflicts @source_files = source_files @skipped_count = skipped_count end |
Instance Attribute Details
#concepts ⇒ Object (readonly)
Returns the value of attribute concepts.
9 10 11 |
# File 'lib/glossarist/sts/import_result.rb', line 9 def concepts @concepts end |
#conflicts ⇒ Object (readonly)
Returns the value of attribute conflicts.
9 10 11 |
# File 'lib/glossarist/sts/import_result.rb', line 9 def conflicts @conflicts end |
#skipped_count ⇒ Object (readonly)
Returns the value of attribute skipped_count.
9 10 11 |
# File 'lib/glossarist/sts/import_result.rb', line 9 def skipped_count @skipped_count end |
#source_files ⇒ Object (readonly)
Returns the value of attribute source_files.
9 10 11 |
# File 'lib/glossarist/sts/import_result.rb', line 9 def source_files @source_files end |
Instance Method Details
#conflict? ⇒ Boolean
19 20 21 |
# File 'lib/glossarist/sts/import_result.rb', line 19 def conflict? !conflicts.empty? end |