class Console::Progress
def to_hash
def to_hash Hash.new.tap do |hash| hash[:type] = :progress hash[:current] = @current hash[:total] = @total hash[:duration] = self.duration hash[:estimated_remaining_time] = self.estimated_remaining_time end end
def to_hash Hash.new.tap do |hash| hash[:type] = :progress hash[:current] = @current hash[:total] = @total hash[:duration] = self.duration hash[:estimated_remaining_time] = self.estimated_remaining_time end end