Class: Glossarist::Sts::ImportResult

Inherits:
Object
  • Object
show all
Defined in:
lib/glossarist/sts/import_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#conceptsObject (readonly)

Returns the value of attribute concepts.



9
10
11
# File 'lib/glossarist/sts/import_result.rb', line 9

def concepts
  @concepts
end

#conflictsObject (readonly)

Returns the value of attribute conflicts.



9
10
11
# File 'lib/glossarist/sts/import_result.rb', line 9

def conflicts
  @conflicts
end

#skipped_countObject (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_filesObject (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

Returns:

  • (Boolean)


19
20
21
# File 'lib/glossarist/sts/import_result.rb', line 19

def conflict?
  !conflicts.empty?
end