Object
# File lib/leo_manager_models.rb, line 182 def initialize(h) @active_num_of_objects = h[:active_num_of_objects] @total_num_of_objects = h[:total_num_of_objects] @active_size_of_objects = h[:active_size_of_objects] @total_size_of_objects = h[:total_size_of_objects] @ratio_of_active_size = h[:ratio_of_active_size] last_compaction_start = h[:last_compaction_start] if last_compaction_start == "____-__-__ __:__:__" @last_compaction_start = nil # you have never done compaction else @last_compaction_start = Time.parse(last_compaction_start) end last_compaction_end = h[:last_compaction_end] if last_compaction_end == "____-__-__ __:__:__" @last_compaction_end = nil else @last_compaction_end = Time.parse(last_compaction_end) end end
Generated with the Darkfish Rdoc Generator 2.