Class: Milkode::Updater::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/milkode/database/updater.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResult

Returns a new instance of Result.



110
111
112
113
114
# File 'lib/milkode/database/updater.rb', line 110

def initialize
  @file_count = 0
  @add_count = 0
  @update_count = 0
end

Instance Attribute Details

#add_countObject (readonly)

Returns the value of attribute add_count.



107
108
109
# File 'lib/milkode/database/updater.rb', line 107

def add_count
  @add_count
end

#file_countObject (readonly)

Returns the value of attribute file_count.



106
107
108
# File 'lib/milkode/database/updater.rb', line 106

def file_count
  @file_count
end

#update_countObject (readonly)

Returns the value of attribute update_count.



108
109
110
# File 'lib/milkode/database/updater.rb', line 108

def update_count
  @update_count
end

Instance Method Details

#inc_add_countObject



120
121
122
# File 'lib/milkode/database/updater.rb', line 120

def inc_add_count
  @add_count += 1
end

#inc_file_countObject



116
117
118
# File 'lib/milkode/database/updater.rb', line 116

def inc_file_count
  @file_count += 1
end

#inc_update_countObject



124
125
126
# File 'lib/milkode/database/updater.rb', line 124

def inc_update_count
  @update_count += 1
end