Class: Milkode::Updater::Result
- Inherits:
-
Object
- Object
- Milkode::Updater::Result
- Defined in:
- lib/milkode/database/updater.rb
Instance Attribute Summary collapse
-
#add_count ⇒ Object
readonly
Returns the value of attribute add_count.
-
#file_count ⇒ Object
readonly
Returns the value of attribute file_count.
-
#update_count ⇒ Object
readonly
Returns the value of attribute update_count.
Instance Method Summary collapse
- #inc_add_count ⇒ Object
- #inc_file_count ⇒ Object
- #inc_update_count ⇒ Object
-
#initialize ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize ⇒ Result
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_count ⇒ Object (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_count ⇒ Object (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_count ⇒ Object (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_count ⇒ Object
120 121 122 |
# File 'lib/milkode/database/updater.rb', line 120 def inc_add_count @add_count += 1 end |
#inc_file_count ⇒ Object
116 117 118 |
# File 'lib/milkode/database/updater.rb', line 116 def inc_file_count @file_count += 1 end |
#inc_update_count ⇒ Object
124 125 126 |
# File 'lib/milkode/database/updater.rb', line 124 def inc_update_count @update_count += 1 end |