Class: MysqlImport::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/mysql_import.rb

Instance Method Summary collapse

Instance Method Details

#add(meth, res) ⇒ Object



97
98
99
# File 'lib/mysql_import.rb', line 97

def add(meth, res)
  mutex.synchronize { __send__(meth).push(res) }
end

#clearObject



101
102
103
104
# File 'lib/mysql_import.rb', line 101

def clear
  imported.clear
  skipped.clear
end

#importedObject



85
86
87
# File 'lib/mysql_import.rb', line 85

def imported
  @imported ||= []
end

#mutexObject



93
94
95
# File 'lib/mysql_import.rb', line 93

def mutex
  @mutext ||= Mutex.new
end

#skippedObject



89
90
91
# File 'lib/mysql_import.rb', line 89

def skipped
  @skipped ||= []
end